-
Notifications
You must be signed in to change notification settings - Fork 122
/
CMakeLists.txt
20 lines (17 loc) · 1011 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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/ScopedFileHelper.cpp
../../TestHelpers/src/StartFrameworkManager.cpp
../../TestHelpers/src/WorkspaceCreationHelper.cpp
)
cxxtest_add_test ( DataHandlingTest ${TEST_FILES} )
target_link_libraries( DataHandlingTest DataHandling )
add_dependencies ( FrameworkTests DataHandlingTest )
# Add to the 'FrameworkTests' group in VS
set_property ( TARGET DataHandlingTest PROPERTY FOLDER "UnitTests" )
endif ()