Created
October 14, 2016 09:33
-
-
Save saleph/0d5b48dd20a286625cc68c3ef95eaaf8 to your computer and use it in GitHub Desktop.
cmake for boost tests
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
project(simple_tests) | |
cmake_minimum_required(VERSION 2.8) | |
aux_source_directory(. SRC_LIST) | |
add_definitions(-DBOOST_TEST_DYN_LINK) | |
find_package(Boost COMPONENTS unit_test_framework REQUIRED) | |
add_executable(${PROJECT_NAME} ${SRC_LIST}) | |
target_link_libraries(${PROJECT_NAME} ${Boost_UNIT_TEST_FRAMEWORK_LIBRARY}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment