-
Notifications
You must be signed in to change notification settings - Fork 122
/
CMakeLists.txt
19 lines (16 loc) · 944 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
if ( CXXTEST_FOUND )
include_directories ( SYSTEM ${CXXTEST_INCLUDE_DIR} ${GMOCK_INCLUDE_DIR} ${GTEST_INCLUDE_DIR} )
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
set ( TESTHELPER_SRCS ../../TestHelpers/src/TearDownWorld.cpp
../../TestHelpers/src/ComponentCreationHelper.cpp
../../TestHelpers/src/WorkspaceCreationHelper.cpp
)
cxxtest_add_test ( ISISLiveDataTest ${TEST_FILES} )
target_link_libraries( ISISLiveDataTest ISISLiveData )
# Specify implicit dependency, but don't link to it
add_dependencies ( FrameworkTests ISISLiveDataTest )
# Add to the 'FrameworkTests' group in VS
set_property ( TARGET ISISLiveDataTest PROPERTY FOLDER "UnitTests" )
endif ()