forked from path-openings/RORPO
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
executable file
·47 lines (36 loc) · 939 Bytes
/
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
38
39
40
41
42
43
44
45
46
cmake_minimum_required(VERSION 3.2)
project(RORPO VERSION 1.0)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
if(UNIX)
SET(LIB_TYPE SHARED)
else()
SET(LIB_TYPE STATIC)
endif()
# Build Type
if(NOT CMAKE_BUILD_TYPE)
SET(CMAKE_BUILD_TYPE Release
CACHE STRING "Choose the type of build : Debug or Release."
FORCE)
endif()
message("Build Type: " ${CMAKE_BUILD_TYPE})
set(PYTHON_BINDING ON CACHE BOOL "enable python binding")
set(3DSLICER_BINDING ON CACHE BOOL "enable 3DSlicer module")
include_directories(
libRORPO/include
Image/include
docopt)
if (NOT ${CMAKE_BUILD_TYPE} STREQUAL "Release")
enable_testing()
endif()
add_subdirectory(libRORPO)
if(NOT 3DSLICER_BINDING)
add_subdirectory(docopt)
endif()
add_subdirectory(RORPO_multiscale_Usage)
# retrieving pybind11
if(PYTHON_BINDING)
include_directories(pyRORPO)
add_subdirectory(pyRORPO)
endif()