CMakeLists.txt 1.59 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
                        ../../TestHelpers/src/NexusTestHelper.cpp
15
                        NXcanSASTestHelper.cpp
16
      )
17

18
  cxxtest_add_test ( DataHandlingTest ${TEST_FILES} )
19
  target_include_directories( DataHandlingTest SYSTEM PRIVATE ${HDF5_INCLUDE_DIRS} )
20
  target_link_libraries( DataHandlingTest LINK_PRIVATE ${TCMALLOC_LIBRARIES_LINKTIME} ${MANTIDLIBS}
21
22
23
            DataHandling
            Nexus
            ${NEXUS_LIBRARIES}
24
25
            ${HDF5_LIBRARIES}
            ${HDF5_HL_LIBRARIES} )
26
  add_dependencies ( DataHandlingTest Algorithms MDAlgorithms )
27
  add_dependencies ( FrameworkTests DataHandlingTest )
28
29
30
  # Test data
  add_dependencies ( DataHandlingTest StandardTestData )

31
32
33
  # Add to the 'FrameworkTests' group in VS
  set_property ( TARGET DataHandlingTest PROPERTY FOLDER "UnitTests" )
endif ()