-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
63 lines (51 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
cmake_minimum_required(VERSION 2.6)
PROJECT(find-sheets)
SET(ITK_DIR /usr/local/itk-svn/lib/InsightToolkit)
FIND_PACKAGE(Boost)
FIND_PACKAGE(ITK)
IF(ITK_FOUND)
INCLUDE(${ITK_USE_FILE})
ELSE(ITK_FOUND)
MESSAGE(FATAL_ERROR
"ITK Not found. Please set ITK_DIR")
ENDIF(ITK_FOUND)
INCLUDE_DIRECTORIES(
${ITK_SOURCE_DIR}/Code/Common
${ITK_SOURCE_DIR}/Code/IO
${ITK_SOURCE_DIR}/Code/BasicFilters
${ITK_SOURCE_DIR}/Code/Algorithms
${BOOST_INCLUDE_DIR}
)
SET(SOURCES
constants.cpp
gaussian.cpp
geometry.cpp
instrument.cpp
local-maxima.cpp
main.cpp
pipeline.cpp
settings.cpp
snapshot.cpp
spatial-hash.cpp
tracing.cpp
util.cpp
)
link_directories(
${BOOST_LIBRARY_DIR}
)
ADD_EXECUTABLE(find-sheets ${SOURCES})
# -pg
SET_SOURCE_FILES_PROPERTIES(${SOURCES} PROPERTIES COMPILE_FLAGS "-g -Wall -Wextra -fmessage-length=60")
# -lc_p brings in profiled C libs
#SET(LINK_FLAGS -pg -lc_p)
#SET_TARGET_PROPERTIES(find-sheets PROPERTIES LINK_FLAGS "-pg")
# Huh - I guess it knows internally where to find the ITK libs
TARGET_LINK_LIBRARIES(
find-sheets
boost_program_options
ITKCommon
ITKIO
ITKBasicFilters
ITKAlgorithms
)
SET(CMAKE_VERBOSE_MAKEFILE ON)