1 cmake_minimum_required(VERSION 2.8.11)
5 # not meant to be included in the documentation
6 set(BOOST_ROOT ${CMAKE_SOURCE_DIR}/../../../../../..)
7 message(STATUS "$BOOST_ROOT = ${BOOST_ROOT}")
8 # creates the executable
9 add_executable(test_executable test_file.cpp)
10 # indicates the include paths
11 target_include_directories(test_executable PRIVATE ${BOOST_ROOT})
12 # indicates the link paths
13 target_link_libraries(test_executable ${Boost_UNIT_TEST_FRAMEWORK_LIBRARY})
15 # declares a test with our executable
16 add_test(NAME test1 COMMAND test_executable)