Skip to content

Instantly share code, notes, and snippets.

@saleph
Created October 14, 2016 09:33
Show Gist options
  • Save saleph/0d5b48dd20a286625cc68c3ef95eaaf8 to your computer and use it in GitHub Desktop.
Save saleph/0d5b48dd20a286625cc68c3ef95eaaf8 to your computer and use it in GitHub Desktop.
cmake for boost tests
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