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

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
10
  set ( TESTHELPER_SRCS ../../TestHelpers/src/TearDownWorld.cpp
                        ../../TestHelpers/src/ComponentCreationHelper.cpp
                        ../../TestHelpers/src/ScopedFileHelper.cpp
                        ../../TestHelpers/src/StartFrameworkManager.cpp
11
                        ../../TestHelpers/src/InstrumentCreationHelper.cpp
12
                        ../../TestHelpers/src/WorkspaceCreationHelper.cpp
13
                        NXcanSASTestHelper.cpp
14
      )
15

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

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