-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
157 lines (134 loc) · 4.8 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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
cmake_minimum_required(VERSION 2.8)
project(MRParameterSuite)
#The following lines are required to use Dart
enable_testing()
find_package(ITK 4.7 REQUIRED)
include(${ITK_USE_FILE})
add_library(Bruker2DSEQImageIO
itkBruker2DSEQImageIO.cxx
itkBruker2DSEQImageIOFactory.cxx
)
target_link_libraries(Bruker2DSEQImageIO ${ITK_LIBRARIES})
add_library(PhilipsRECImageIO
itkPhilipsRECImageIO.cxx itkPhilipsRECImageIOFactory.cxx itkPhilipsPAR.cxx
)
target_link_libraries(PhilipsRECImageIO ${ITK_LIBRARIES})
set(CUSTOM_IO_LIBRARIES PhilipsRECImageIO Bruker2DSEQImageIO )
set(CurrentExe ImageCompare)
add_executable(${CurrentExe} ImageCompare.cxx)
set_target_properties(${CurrentExe} PROPERTIES
RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
target_link_libraries(${CurrentExe} ${CUSTOM_IO_LIBRARIES})
set(CurrentExe BrukerT2Map)
set(CurrentSrc
BrukerT2Map.cxx
)
add_executable(${CurrentExe} ${CurrentSrc})
target_link_libraries(${CurrentExe} ${CUSTOM_IO_LIBRARIES})
set(CurrentExe BrukerT1Map)
set(CurrentSrc
BrukerT1Map.cxx
)
add_executable(${CurrentExe} ${CurrentSrc})
target_link_libraries(${CurrentExe} ${CUSTOM_IO_LIBRARIES})
set(CurrentExe PhilipsT2Map)
set(CurrentSrc
PhilipsT2Map.cxx
)
add_executable(${CurrentExe} ${CurrentSrc})
target_link_libraries(${CurrentExe} ${CUSTOM_IO_LIBRARIES})
set(CurrentExe PhilipsT1Map)
set(CurrentSrc
PhilipsT1Map.cxx
itkPhilipsPAR.cxx
)
add_executable(${CurrentExe} ${CurrentSrc})
target_link_libraries(${CurrentExe} ${CUSTOM_IO_LIBRARIES})
find_package(SlicerExecutionModel REQUIRED GenerateCLP)
include(${GenerateCLP_USE_FILE})
set(CurrentExe T1rhoMap)
set(CurrentSrc T1rhoMap.cxx
itkFDFCommonImageIO.cxx
itkFDFImageIO.cxx
itkFDFImageIOFactory.cxx
)
GenerateCLP(CurrentSrc T1rhoMap.xml)
add_executable(${CurrentExe} ${CurrentSrc})
target_link_libraries(${CurrentExe} ${CUSTOM_IO_LIBRARIES})
set(CurrentParam
${CMAKE_SOURCE_DIR}/DCB021304.oj1/3/pdata/1/2dseq
${CMAKE_CURRENT_BINARY_DIR}/brkt2test.mhd
${CMAKE_CURRENT_BINARY_DIR}/brkt2exptest.mhd
${CMAKE_CURRENT_BINARY_DIR}/brkt2consttest.mhd
${CMAKE_CURRENT_BINARY_DIR}/brkt2rsqrtest.mhd
0
0
"2.0"
1000
)
add_test(NAME BrukerT2MapTest
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
COMMAND $<TARGET_FILE:BrukerT2Map> ${CurrentParam})
add_test(NAME CompareImage1
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
COMMAND $<TARGET_FILE:ImageCompare> ${CMAKE_SOURCE_DIR}/brukert2test.mhd ${CMAKE_CURRENT_BINARY_DIR}/brkt2test.mhd)
add_test(NAME CompareImage2
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
COMMAND $<TARGET_FILE:ImageCompare> ${CMAKE_SOURCE_DIR}/brukert2exptest.mhd ${CMAKE_CURRENT_BINARY_DIR}/brkt2exptest.mhd)
add_test(NAME CompareImage3
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
COMMAND $<TARGET_FILE:ImageCompare> ${CMAKE_SOURCE_DIR}/brukert2consttest.mhd ${CMAKE_CURRENT_BINARY_DIR}/brkt2consttest.mhd)
add_test(NAME CompareImage4
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
COMMAND $<TARGET_FILE:ImageCompare> ${CMAKE_SOURCE_DIR}/brukert2rsqrtest.mhd ${CMAKE_CURRENT_BINARY_DIR}/brkt2rsqrtest.mhd)
set(CurrentParam
${CMAKE_SOURCE_DIR}/DCB021304.oj1/5/pdata/1/2dseq
${CMAKE_CURRENT_BINARY_DIR}/brkt1test.mhd
${CMAKE_CURRENT_BINARY_DIR}/brkt1exptest.mhd
${CMAKE_CURRENT_BINARY_DIR}/brkt1consttest.mhd
${CMAKE_CURRENT_BINARY_DIR}/brkt1rsqrtest.mhd
0
5
"5.0"
20546109
)
add_test(NAME BrukerT1MapTest
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
COMMAND $<TARGET_FILE:BrukerT1Map> ${CurrentParam})
add_test(NAME CompareImage5
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
COMMAND $<TARGET_FILE:ImageCompare> ${CMAKE_SOURCE_DIR}/brukert1test.mhd ${CMAKE_CURRENT_BINARY_DIR}/brkt1test.mhd)
set(CurrentParam
${CMAKE_SOURCE_DIR}/T2_Map_4_3.PAR
${CMAKE_CURRENT_BINARY_DIR}/philt2test.mhd
${CMAKE_CURRENT_BINARY_DIR}/philt2exptest.mhd
${CMAKE_CURRENT_BINARY_DIR}/philt2consttest.mhd
${CMAKE_CURRENT_BINARY_DIR}/philt2rsqrtest.mhd
0
1
"2.0"
14
)
add_test(NAME PhilipsT2MapTest
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
COMMAND $<TARGET_FILE:PhilipsT2Map> ${CurrentParam})
add_test(NAME CompareImage6
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
COMMAND $<TARGET_FILE:ImageCompare> ${CMAKE_SOURCE_DIR}/philipst2test.mhd ${CMAKE_CURRENT_BINARY_DIR}/philt2test.mhd)
set(CurrentParam
${CMAKE_SOURCE_DIR}/T1_LL_10_1.PAR
${CMAKE_CURRENT_BINARY_DIR}/philt1test.mhd
${CMAKE_CURRENT_BINARY_DIR}/philt1exptest.mhd
${CMAKE_CURRENT_BINARY_DIR}/philt1consttest.mhd
${CMAKE_CURRENT_BINARY_DIR}/philt1rsqrtest.mhd
0
1
"5.0"
50
)
add_test(NAME PhilipsT1MapTest
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
COMMAND $<TARGET_FILE:PhilipsT1Map> ${CurrentParam})
add_test(NAME CompareImage7
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
COMMAND $<TARGET_FILE:ImageCompare> ${CMAKE_SOURCE_DIR}/philipst1test.mhd ${CMAKE_CURRENT_BINARY_DIR}/philt1test.mhd)