-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathCMakeLists.txt
65 lines (48 loc) · 1.3 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
PROJECT (TateTen3D)
### The following are needed to avoid warnings. See CMake doc. ######
CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
if(COMMAND cmake_policy)
cmake_policy(SET CMP0003 NEW)
endif(COMMAND cmake_policy)
#####################################################################
SET (LIBRARY_OUTPUT_PATH ${TateTen3D_BINARY_DIR}/bin
CACHE
PATH
"Single output directory for building all libraries.")
SET (EXECUTABLE_OUTPUT_PATH ${TateTen3D_BINARY_DIR}/bin
CACHE
PATH
"Single output directory for building all executables.")
INCLUDE_DIRECTORIES (${LIBRARY_OUTPUT_PATH})
INCLUDE_DIRECTORIES (${EXECUTABLE_OUTPUT_PATH})
INCLUDE_DIRECTORIES (${TateTen3D_SOURCE_DIR}/Algorithms)
MARK_AS_ADVANCED(
LIBRARY_OUTPUT_PATH
EXECUTABLE_OUTPUT_PATH
)
### Find VTK
INCLUDE (${CMAKE_ROOT}/Modules/FindVTK.cmake)
IF (USE_VTK_FILE)
INCLUDE(${USE_VTK_FILE})
ENDIF (USE_VTK_FILE)
SUBDIRS(
Algorithms
)
OPTION( BUILD_DOCUMENTATION
"Build Doxygen documentation"
OFF )
OPTION( BUILD_TESTS
"Build tests"
OFF )
OPTION( BUILD_TOOLS
"Build Tools"
ON )
IF( BUILD_DOCUMENTATION )
SUBDIRS(Documentation)
ENDIF( BUILD_DOCUMENTATION )
IF( BUILD_TESTS )
SUBDIRS(Tests)
ENDIF( BUILD_TESTS )
IF( BUILD_TOOLS )
SUBDIRS(Tools)
ENDIF( BUILD_TOOLS )