File: CMakeLists.txt

package info (click to toggle)
insighttoolkit5 5.4.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 704,404 kB
  • sloc: cpp: 783,697; ansic: 628,724; xml: 44,704; fortran: 34,250; python: 22,874; sh: 4,078; pascal: 2,636; lisp: 2,158; makefile: 461; yacc: 328; asm: 205; perl: 203; lex: 146; tcl: 132; javascript: 98; csh: 81
file content (110 lines) | stat: -rw-r--r-- 3,757 bytes parent folder | download | duplicates (2)
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
itk_module_test()
set(ITKIntegratedTestTests
    itkFilterImageAddTest.cxx # missing itk_add_test() call
    itkNumericsPrintTest.cxx
    itkReleaseDataFilterTest.cxx # missing itk_add_test() call
    itkStatisticsPrintTest.cxx
    itkCommonPrintTest.cxx
    itkIOPrintTest.cxx
    itkBasicFiltersPrintTest.cxx
    itkSpatialObjectPrintTest.cxx
    itkShrinkImagePreserveObjectPhysicalLocations.cxx)

createtestdriver(ITKIntegratedTest "${ITKIntegratedTest-Test_LIBRARIES}" "${ITKIntegratedTestTests}")

set(TEMP ${ITK_TEST_OUTPUT_DIR})

# temporary solution for all print tests. Each module should have its own print test later.
add_executable(itkAlgorithmsPrintTest itkAlgorithmsPrintTest.cxx)
target_link_options(itkAlgorithmsPrintTest PRIVATE "$<$<AND:$<C_COMPILER_ID:AppleClang>,$<VERSION_GREATER_EQUAL:$<C_COMPILER_VERSION>,15.0>>:LINKER:-no_warn_duplicate_libraries>")
itk_module_target_label(itkAlgorithmsPrintTest)
target_link_libraries(itkAlgorithmsPrintTest LINK_PUBLIC ${ITKIntegratedTest-Test_LIBRARIES})
itk_add_test(
  NAME
  itkAlgorithmsPrintTest
  COMMAND
  itkAlgorithmsPrintTest)

add_executable(itkAlgorithmsPrintTest2 itkAlgorithmsPrintTest2.cxx)
target_link_options(itkAlgorithmsPrintTest2 PRIVATE "$<$<AND:$<C_COMPILER_ID:AppleClang>,$<VERSION_GREATER_EQUAL:$<C_COMPILER_VERSION>,15.0>>:LINKER:-no_warn_duplicate_libraries>")
itk_module_target_label(itkAlgorithmsPrintTest2)
target_link_libraries(itkAlgorithmsPrintTest2 LINK_PUBLIC ${ITKIntegratedTest-Test_LIBRARIES})
itk_add_test(
  NAME
  itkAlgorithmsPrintTest2
  COMMAND
  itkAlgorithmsPrintTest)

add_executable(itkAlgorithmsPrintTest3 itkAlgorithmsPrintTest3.cxx)
target_link_options(itkAlgorithmsPrintTest3 PRIVATE "$<$<AND:$<C_COMPILER_ID:AppleClang>,$<VERSION_GREATER_EQUAL:$<C_COMPILER_VERSION>,15.0>>:LINKER:-no_warn_duplicate_libraries>")
itk_module_target_label(itkAlgorithmsPrintTest3)
target_link_libraries(itkAlgorithmsPrintTest3 LINK_PUBLIC ${ITKIntegratedTest-Test_LIBRARIES})
itk_add_test(
  NAME
  itkAlgorithmsPrintTest3
  COMMAND
  itkAlgorithmsPrintTest)

add_executable(itkAlgorithmsPrintTest4 itkAlgorithmsPrintTest4.cxx)
target_link_options(itkAlgorithmsPrintTest4 PRIVATE "$<$<AND:$<C_COMPILER_ID:AppleClang>,$<VERSION_GREATER_EQUAL:$<C_COMPILER_VERSION>,15.0>>:LINKER:-no_warn_duplicate_libraries>")
itk_module_target_label(itkAlgorithmsPrintTest4)
target_link_libraries(itkAlgorithmsPrintTest4 LINK_PUBLIC ${ITKIntegratedTest-Test_LIBRARIES})
itk_add_test(
  NAME
  itkAlgorithmsPrintTest4
  COMMAND
  itkAlgorithmsPrintTest)

#-------------------------------------------------------------------------
itk_add_test(
  NAME
  itkStatisticsPrintTest
  COMMAND
  ITKIntegratedTestTestDriver
  itkStatisticsPrintTest)
itk_add_test(
  NAME
  itkSpatialObjectPrintTest
  COMMAND
  ITKIntegratedTestTestDriver
  itkSpatialObjectPrintTest)
itk_add_test(
  NAME
  itkIOPrintTest
  COMMAND
  ITKIntegratedTestTestDriver
  itkIOPrintTest)

itk_add_test(
  NAME
  itkCommonPrintTest
  COMMAND
  ITKIntegratedTestTestDriver
  --redirectOutput
  ${TEMP}/itkCommonPrintTest.txt
  itkCommonPrintTest)
set_tests_properties(itkCommonPrintTest PROPERTIES ATTACHED_FILES_ON_FAIL ${TEMP}/itkCommonPrintTest.txt)

itk_add_test(
  NAME
  itkBasicFiltersPrintTest
  COMMAND
  ITKIntegratedTestTestDriver
  --redirectOutput
  ${TEMP}/itkBasicFiltersPrintTest.txt
  itkBasicFiltersPrintTest)
set_tests_properties(itkBasicFiltersPrintTest PROPERTIES ATTACHED_FILES_ON_FAIL ${TEMP}/itkBasicFiltersPrintTest.txt)

itk_add_test(
  NAME
  itkNumericsPrintTest
  COMMAND
  ITKIntegratedTestTestDriver
  itkNumericsPrintTest)

itk_add_test(
  NAME
  itkShrinkImagePreserveObjectPhysicalLocations
  COMMAND
  ITKIntegratedTestTestDriver
  itkShrinkImagePreserveObjectPhysicalLocations)