• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#  (C) Copyright Raffi Enficiaud 2014.
2#  Distributed under the Boost Software License, Version 1.0.
3#  (See accompanying file LICENSE_1_0.txt or copy at
4#  http://www.boost.org/LICENSE_1_0.txt)
5#
6#  See http://www.boost.org/libs/test for the library home page.
7#
8#  trivial cmake script for running the dataset
9# ***************************************************************************
10
11cmake_minimum_required(VERSION 2.8.11)
12project(my_first_test)
13enable_testing()
14
15# not meant to be included in the documentation
16set(BOOST_ROOT ${CMAKE_SOURCE_DIR}/../../../../../..)
17message(STATUS "$BOOST_ROOT = ${BOOST_ROOT}")
18# creates the executable
19add_executable(test_executable test_file.cpp)
20# indicates the include paths
21target_include_directories(test_executable PRIVATE ${BOOST_ROOT})
22# indicates the link paths
23target_link_libraries(test_executable ${Boost_UNIT_TEST_FRAMEWORK_LIBRARY})
24
25# declares a test with our executable
26add_test(NAME test1 COMMAND test_executable)
27