CMakeLists.txt 1.68 KB
Newer Older
1
if ( CXXTEST_FOUND )
2
  include_directories ( SYSTEM ${CXXTEST_INCLUDE_DIR} )
3

4
5
6
  include_directories ( ../../TestHelpers/inc )
  # This variable is used within the cxxtest_add_test macro to build this helper class into the test executable.
  # It will go out of scope at the end of this file so doesn't need un-setting
7
8
9
  set ( TESTHELPER_SRCS ../../TestHelpers/src/ComponentCreationHelper.cpp
                        ../../TestHelpers/src/FileComparisonHelper.cpp
                        ../../TestHelpers/src/InstrumentCreationHelper.cpp
10
11
                        ../../TestHelpers/src/ScopedFileHelper.cpp
                        ../../TestHelpers/src/StartFrameworkManager.cpp
12
                        ../../TestHelpers/src/TearDownWorld.cpp
13
                        ../../TestHelpers/src/WorkspaceCreationHelper.cpp
14
                        NXcanSASTestHelper.cpp
15
      )
16

17
  cxxtest_add_test ( DataHandlingTest ${TEST_FILES} )
18
  target_include_directories( DataHandlingTest SYSTEM PRIVATE ${HDF5_INCLUDE_DIRS} )
19
  target_link_libraries( DataHandlingTest LINK_PRIVATE ${TCMALLOC_LIBRARIES_LINKTIME}
20
21
22
23
            API
            DataHandling
            DataObjects
            Geometry
24
            HistogramData
25
26
27
28
29
            Kernel
            Nexus
            ${NEXUS_LIBRARIES}
            ${Boost_LIBRARIES}
            ${POCO_LIBRARIES}
30
31
            ${HDF5_LIBRARIES}
            ${HDF5_HL_LIBRARIES} )
32
  add_dependencies ( DataHandlingTest Algorithms MDAlgorithms )
33
  add_dependencies ( FrameworkTests DataHandlingTest )
34
35
36
  # Test data
  add_dependencies ( DataHandlingTest StandardTestData )

37
38
39
  # Add to the 'FrameworkTests' group in VS
  set_property ( TARGET DataHandlingTest PROPERTY FOLDER "UnitTests" )
endif ()