-
Notifications
You must be signed in to change notification settings - Fork 8
/
CMakeLists.txt
64 lines (51 loc) · 2.06 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
#-----------------------------------------------------------------------------
set(BASELINE ${CMAKE_CURRENT_SOURCE_DIR}/../Data/Baseline)
set(INPUT ${CMAKE_CURRENT_SOURCE_DIR}/../Data/Input)
set(TEMP ${CMAKE_BINARY_DIR}/Testing/Temporary)
set(CLP ${MODULE_NAME})
#-----------------------------------------------------------------------------
add_executable(${CLP}Test ${CLP}Test.cxx)
target_link_libraries(${CLP}Test ${CLP}Lib ${SlicerExecutionModel_EXTRA_EXECUTABLE_TARGET_LIBRARIES})
set_target_properties(${CLP}Test PROPERTIES LABELS ${CLP})
set(testname ${CLP}Test1)
add_test(NAME ${testname} COMMAND ${SEM_LAUNCH_COMMAND} $<TARGET_FILE:${CLP}Test>
--compare ${BASELINE}/${testname}.mrc
${TEMP}/${testname}.mrc
ModuleEntryPoint
--bin 1,1,2
--disableZBin
--inputDirectory ${INPUT}/InLens/
${TEMP}/${testname}.mrc )
set_property(TEST ${testname} PROPERTY LABELS ${CLP})
set(testname ${CLP}Test2)
add_test(NAME ${testname} COMMAND ${SEM_LAUNCH_COMMAND} $<TARGET_FILE:${CLP}Test>
--compare ${BASELINE}/${testname}.mrc
${TEMP}/${testname}.mrc
ModuleEntryPoint
--bin 1,1,2
--inputDirectory ${INPUT}/InLens/
--imodxg "${INPUT}/InLens/Gold3nmEsBTr.xg"
${TEMP}/${testname}.mrc )
set_property(TEST ${testname} PROPERTY LABELS ${CLP})
set(testname ${CLP}Test3)
add_test(NAME ${testname} COMMAND ${SEM_LAUNCH_COMMAND} $<TARGET_FILE:${CLP}Test>
--compare ${BASELINE}/${testname}.mrc
${TEMP}/${testname}.mrc
ModuleEntryPoint
--bin 4,4,2
--disableZBin
--inputDirectory ${INPUT}/InLens/
--imodxg "${INPUT}/InLens/Gold3nmEsBTr.xg"
${TEMP}/${testname}.mrc )
set_property(TEST ${testname} PROPERTY LABELS ${CLP})
set(testname ${CLP}Test4)
add_test(NAME ${testname} COMMAND ${SEM_LAUNCH_COMMAND} $<TARGET_FILE:${CLP}Test>
--compare ${BASELINE}/${CLP}Test2.mrc
${TEMP}/${testname}.nrrd
ModuleEntryPoint
--bin 1,1,2
--inputDirectory ${INPUT}/InLens/
--imodxg "${INPUT}/InLens/Gold3nmEsBTr.xg"
${TEMP}/${testname}.nrrd )
set_property(TEST ${testname} PROPERTY LABELS ${CLP})
ExternalData_Add_Target(Data)