/
CMakeLists.txt
118 lines (88 loc) · 2.35 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
cmake_minimum_required(VERSION 2.8.11)
PROJECT(imageProcess)
add_definitions( -DBOOST_ALL_NO_LIB )
set( Boost_USE_STATIC_LIBS ON )
SET(QT_USE_QTSQL TRUE)
FIND_PACKAGE (Qt5 COMPONENTS Widgets Xml Network Test OpenGL PrintSupport REQUIRED)
INCLUDE_DIRECTORIES (${CMAKE_CURRENT_BINARY_DIR})
ADD_DEFINITIONS (${QT_DEFINITIONS})
FIND_PACKAGE(OpenCV REQUIRED )
INCLUDE_DIRECTORIES(${OPENCV_INCLUDE_DIR})
FIND_PACKAGE(ITK)
INCLUDE(${ITK_USE_FILE})
FIND_PACKAGE(VTK)
INCLUDE(${VTK_USE_FILE})
SET (imageProcess_HEADERS
geometryTransform.h
itkFilter.h
morphology.h
pointOperation.h
visualization.h
registration.h
orthogonalTransform.h
edge_contour.h
segmentation.h
vtkCustomCommands.h
dicomProcess.h
mainwindow.h
mainwindowInterator.h
)
SET(imageProcess_RESOURCES imageprocess.qrc)
SET (imageProcess_UIS
imageProcess.ui
edge_contour.ui
itkFilter.ui
morphology.ui
orthogonalTransform.ui
pointOperation.ui
visualization.ui
registration.ui
segmentation.ui
geometryTransform.ui
dicomProcess.ui
)
SET (imageProcess_SRCS
geometryTransform.h
itkFilter.h
morphology.h
pointOperation.h
visualization.h
registration.h
orthogonalTransform.h
edge_contour.h
segmentation.h
vtkCustomCommands.h
dicomProcess.h
mainwindow.h
mainwindowInterator.h
geometryTransform.cpp
itkFilter.cpp
morphology.cpp
pointOperation.cpp
visualization.cpp
registration.cpp
orthogonalTransform.cpp
edge_contour.cpp
segmentation.cpp
vtkCustomCommands.cpp
dicomProcess.cpp
main.cpp
mainwindow.cpp
mainwindowInterator.cpp
imageprocess.qrc
imageProcess.rc
)
QT5_WRAP_CPP (imageProcess_HEADERS_MOC ${imageProcess_HEADERS})
QT5_ADD_RESOURCES (imageProcess_RESOURCES_RCC ${imageProcess_RESOURCES})
QT5_WRAP_UI (imageProcess_UIS_UIC ${imageProcess_UIS})
FIND_PACKAGE( Boost COMPONENTS program_options filesystem system REQUIRED )
INCLUDE_DIRECTORIES( ${Boost_INCLUDE_DIR} )
ADD_EXECUTABLE (imageProcess ${imageProcess_SRCS}
${imageProcess_HEADERS_MOC}
${imageProcess_RESOURCES_RCC}
${imageProcess_UIS_UIC})
TARGET_LINK_LIBRARIES (imageProcess ${QT_LIBRARIES})
TARGET_LINK_LIBRARIES(imageProcess ${OpenCV_LIBS})
TARGET_LINK_LIBRARIES(imageProcess ${ITK_LIBRARIES})
TARGET_LINK_LIBRARIES(imageProcess ${VTK_LIBRARIES})
TARGET_LINK_LIBRARIES(imageProcess ${Boost_LIBRARIES})