forked from xintong-ai/OH3D
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
96 lines (69 loc) · 2.04 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
cmake_minimum_required(VERSION 2.6)
PROJECT (DeformVis)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/")
find_package(Qt5Widgets REQUIRED)
find_package(CUDA REQUIRED)
find_package(GLM REQUIRED)
option(BUILD_TUTORIAL "Build a tutorial project" ON)
option(BUILD_TEST "Build ongoing projects that are not well mainteined" OFF)
option(USE_TEEM "Enable features that require Teem" OFF)
if(USE_TEEM)
find_package(Teem REQUIRED)
endif()
option(USE_LEAP OFF)
if(USE_LEAP)
find_package(Leap)
endif()
option(USE_OSVR "Enable features that require OSVR" OFF)
if(USE_OSVR)
if (Boost_FOUND)
else ()
set ( BOOST_ROOT "/usr/local" CACHE PATH "the root directory containing Boost")
endif ()
find_package(osvr REQUIRED)
include_directories(${osvr_DIR}/../../../include)
endif()
option(USE_TOUCHSCREEN "Enable touch screen interaction." OFF)
if(BUILD_TEST)
option(USE_VTK "Enable features that require VTK" OFF)
if(USE_VTK)
find_package(VTK REQUIRED)
endif()
option(USE_ITK "Enable features that require ITK" OFF)
if(USE_ITK)
find_package(ITK REQUIRED)
endif()
endif ()
option(USE_CONTROLLER "Enable VIVE controller. !! NOT tested yet!!" OFF)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x")
set(DEFORM_DIR "${CMAKE_SOURCE_DIR}/deform")
set(INTERACT_DIR "${CMAKE_SOURCE_DIR}/interact")
set(IO_DIR "${CMAKE_SOURCE_DIR}/io")
set(RENDER_DIR "${CMAKE_SOURCE_DIR}/render")
set(DATAMODEL_DIR "${CMAKE_SOURCE_DIR}/dataModel")
#set(VPSEL_DIR "${CMAKE_SOURCE_DIR}/vpsel")
include_directories(
${DEFORM_DIR}
${INTERACT_DIR}
#${VPSEL_DIR}
${IO_DIR}
${RENDER_DIR}
${GLM_INCLUDE_DIR}
${DATAMODEL_DIR}
cuda_types/
${CUDA_SDK_ROOT_DIR}/common/inc
)
if(USE_ITK)
#add_subdirectory(vpsel)
#essentially vpsel does not need ITK. but all executables using vpsel will use ITK
endif()
add_subdirectory(deform)
add_subdirectory(dataModel)
add_subdirectory(interact)
add_subdirectory(io)
add_subdirectory(render)
add_subdirectory(programs)
configure_file (
"${PROJECT_SOURCE_DIR}/CMakeConfig.h.in"
"${PROJECT_BINARY_DIR}/CMakeConfig.h"
)