From 1a4540d78b931a11d5aece6b946ede86cf9876dc Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sat, 21 Dec 2019 15:56:25 +0300 Subject: cmake: use Boost::* targets --- test/unit_tests/CMakeLists.txt | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'test') diff --git a/test/unit_tests/CMakeLists.txt b/test/unit_tests/CMakeLists.txt index dbb78ed..39cd4ee 100644 --- a/test/unit_tests/CMakeLists.txt +++ b/test/unit_tests/CMakeLists.txt @@ -2,11 +2,8 @@ find_package(Boost REQUIRED COMPONENTS unit_test_framework) add_executable(unit_tests main.cpp lexer.cpp parser.cpp) target_link_libraries(unit_tests PRIVATE lexer parser) +target_link_libraries(unit_tests PRIVATE Boost::unit_test_framework) target_include_directories(unit_tests PRIVATE ../..) - -target_include_directories(unit_tests SYSTEM PRIVATE ${Boost_INCLUDE_DIRS}) -target_link_libraries(unit_tests PRIVATE ${Boost_LIBRARIES}) - set_target_properties(unit_tests PROPERTIES OUTPUT_NAME math-server-unit-tests) install(TARGETS unit_tests RUNTIME DESTINATION bin) -- cgit v1.2.3