File: CMakeLists.txt

package info (click to toggle)
gdcm 3.0.24-5
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 27,560 kB
  • sloc: cpp: 203,722; ansic: 76,471; xml: 48,131; python: 3,473; cs: 2,308; java: 1,629; lex: 1,290; sh: 334; php: 128; makefile: 97
file content (46 lines) | stat: -rw-r--r-- 1,241 bytes parent folder | download | duplicates (3)
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
# Define the tests for Information Object Definition
# IOD
set(IOD_TEST_SRCS
  TestTableReader.cxx
  TestTable.cxx
  TestTableEntry.cxx
  TestType.cxx
  TestModule.cxx
  TestModules.cxx
  TestModuleEntry.cxx
  TestNestedModuleEntries.cxx
  TestIODEntry.cxx
  TestIOD.cxx
  TestIODs.cxx
  TestDefs.cxx
  TestPatient.cxx
  TestSeries.cxx
  TestStudy.cxx
  TestDefinedTerms.cxx
  TestEnumeratedValues.cxx
  TestUsage.cxx
  #TestXMLDictReader.cxx
  #TestXMLPrivateDictReader.cxx
  )

# Add the include paths
include_directories(
  "${GDCM_BINARY_DIR}/Source/Common"
  "${GDCM_SOURCE_DIR}/Source/Common"
  "${GDCM_SOURCE_DIR}/Source/DataStructureAndEncodingDefinition"
  "${GDCM_SOURCE_DIR}/Source/DataDictionary"
  "${GDCM_SOURCE_DIR}/Source/InformationObjectDefinition"
  "${GDCM_BINARY_DIR}/Source/InformationObjectDefinition" # gdcmTables.h
  )

create_test_sourcelist(IODTests gdcmIODTests.cxx ${IOD_TEST_SRCS}
  EXTRA_INCLUDE gdcmTestDriver.h
  )
add_executable(gdcmIODTests ${IODTests})
target_link_libraries(gdcmIODTests gdcmIOD gdcmMSFF)

# Loop over files and create executables
foreach(name ${IOD_TEST_SRCS})
  get_filename_component(testname ${name} NAME_WE)
  add_test(NAME ${testname} COMMAND gdcmIODTests ${testname})
endforeach()