-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
89 lines (71 loc) · 2.56 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
PROJECT(NAMICSEED)
# CMake >= 2.6 has to be installed (fighting for progress)
CMAKE_MINIMUM_REQUIRED( VERSION 2.6 )
MESSAGE( STATUS "NAMIC SEED" )
# On Visual Studio 8 MS deprecated C. This removes all 1.276E1265 security
# warnings. Copied from ITK CMakeLists.
IF( WIN32 )
IF( NOT BORLAND )
IF( NOT CYGWIN )
IF( NOT MINGW )
ADD_DEFINITIONS(
-D_CRT_FAR_MAPPINGS_NO_DEPRECATE
-D_CRT_IS_WCTYPE_NO_DEPRECATE
-D_CRT_MANAGED_FP_NO_DEPRECATE
-D_CRT_NONSTDC_NO_DEPRECATE
-D_CRT_SECURE_NO_DEPRECATE
-D_CRT_SECURE_NO_DEPRECATE_GLOBALS
-D_CRT_SETERRORMODE_BEEP_SLEEP_NO_DEPRECATE
-D_CRT_TIME_FUNCTIONS_NO_DEPRECATE
-D_CRT_VCCLRIT_NO_DEPRECATE
-D_SCL_SECURE_NO_DEPRECATE
)
ENDIF( NOT MINGW )
ENDIF( NOT CYGWIN )
ENDIF( NOT BORLAND )
ENDIF( WIN32 )
#--------------------------------------------------------------------------
# Define CMAKE_whatever_OUTPUT_DIRECTORY
#--------------------------------------------------------------------------
# all target executables will be
# in ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}
SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY
${NAMICSEED_BINARY_DIR}/bin
)
# all target static libraries will be in ${CMAKE_ARCHIVE_OUTPUT_DIRECTORY}
SET( CMAKE_ARCHIVE_OUTPUT_DIRECTORY
${NAMICSEED_BINARY_DIR}/lib
)
# all shared libraries will be in ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}
# Note that modules (plugins) are considered as shared libraries
SET( CMAKE_LIBRARY_OUTPUT_DIRECTORY
# ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/plugins
${NAMICSEED_BINARY_DIR}/lib
)
LINK_DIRECTORIES(
${CMAKE_RUNTIME_OUTPUT_DIRECTORY}
${CMAKE_ARCHIVE_OUTPUT_DIRECTORY}
${CMAKE_LIBRARY_OUTPUT_DIRECTORY}
)
#--------------------------------------------------------------------------
# Define TESTING_DATA_PATH
#--------------------------------------------------------------------------
#SET( TESTING_DATA_PATH
# ${NAMICSEED_SOURCE_DIR}/Testing/Data
# CACHE PATH "Directory which contains data for testing."
#)
#--------------------------------------------------------------------------
# ITK
#--------------------------------------------------------------------------
FIND_PACKAGE( ITK )
IF( ITK_FOUND )
INCLUDE( ${ITK_USE_FILE} )
ENDIF( ITK_FOUND )
#-------------------------------------------------------------------------
# PROJECT STRUCTURE
#-------------------------------------------------------------------------
INCLUDE_DIRECTORIES( BEFORE
${NAMICSEED_SOURCE_DIR}/Code/
${NAMICSEED_SOURCE_DIR}/Code/Filters/
)
ADD_SUBDIRECTORY( Examples )