Skip to content

Commit

Permalink
trying included_unit_test_framework
Browse files Browse the repository at this point in the history
  • Loading branch information
klemens-morgenstern committed Oct 23, 2023
1 parent abfff39 commit e96de06
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,14 @@ add_executable(boost_cobalt_basic_tests

target_link_libraries(boost_cobalt_main Boost::cobalt)
target_link_libraries(boost_cobalt_main_compile Boost::cobalt)
target_link_libraries(boost_cobalt_basic_tests Boost::cobalt Boost::unit_test_framework)
target_link_libraries(boost_cobalt_basic_tests Boost::cobalt)

if (TARGET Boost::included_unit_test_framework)
target_link_libraries(boost_cobalt_basic_tests Boost::included_unit_test_framework)
endif()

add_test(NAME boost_cobalt_main COMMAND boost_cobalt_main)
add_test(NAME boost_cobalt_basic_tests COMMAND boost_cobalt_basic_tests)
target_compile_features(boost_cobalt PUBLIC cxx_std_20)

add_dependencies(tests boost_cobalt_main boost_cobalt_basic_tests boost_cobalt_static_tests)

2 changes: 1 addition & 1 deletion test/test_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)

#define BOOST_TEST_MODULE cobalt_test
#include <boost/test/included/unit_test.hpp>
#include <boost/test/included/unit_test.hpp>

0 comments on commit e96de06

Please sign in to comment.