-
Notifications
You must be signed in to change notification settings - Fork 2
/
CMakeLists.txt
37 lines (28 loc) · 1.26 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
cmake_minimum_required(VERSION 2.8 FATAL_ERROR)
set(OPENCAL_MAJOR_VERSION 1)
set(OPENCAL_MINOR_VERSION 1)
set(OPENCAL_VERSION
${OPENCAL_MAJOR_VERSION}.${OPENCAL_MINOR_VERSION})
project(OpenCAL-examples-${OPENCAL_VERSION}
LANGUAGES C CXX)
option(BUILD_OPENCAL_SERIAL "Build the OpenCAL serial version" ON )
option(BUILD_OPENCAL_OMP "Build the OpenCAL-OMP OpenMP parallel version (OpenMP required)" ON )
option(BUILD_OPENCAL_OMP_PARALLEL "Controls if OpenCAL-OMP compiled agaist libomp. If off just one processor is used." ON )
option(BUILD_OPENCAL_CL "Build the OpenCAL-CL OpenCL parallel version (OpenCL required)" ON)
option(BUILD_OPENCAL_GL "Build the OpenCAL-GL visualization library (OpenGL and GLUT required)" OFF)
option(BUILD_OPENCAL_++ "Build the OpenCAL-GL visualization library (OpenGL and GLUT required)" OFF)
if(BUILD_OPENCAL_SERIAL)
add_subdirectory(OpenCAL)
endif(BUILD_OPENCAL_SERIAL)
if(BUILD_OPENCAL_OMP)
add_subdirectory(OpenCAL-OMP)
endif(BUILD_OPENCAL_OMP)
if(BUILD_OPENCAL_GL)
add_subdirectory(OpenCAL-GL)
endif(BUILD_OPENCAL_GL)
if(BUILD_OPENCAL_CL)
add_subdirectory(OpenCAL-CL)
endif(BUILD_OPENCAL_CL)
if(BUILD_OPENCAL_++)
add_subdirectory(OpenCAL++)
endif(BUILD_OPENCAL_++)