From 004073a7b79dc9c455416703d30f4922b4577172 Mon Sep 17 00:00:00 2001 From: Gabriele Contini <contini.mailing@gmail.com> Date: 周六, 16 5月 2020 23:18:22 +0800 Subject: [PATCH] tentative fix for test failing when in submodule --- test/library/os/CMakeLists.txt | 19 ++++++++++++++++++- 1 files changed, 18 insertions(+), 1 deletions(-) diff --git a/test/library/os/CMakeLists.txt b/test/library/os/CMakeLists.txt index 2cda53e..1af4e92 100644 --- a/test/library/os/CMakeLists.txt +++ b/test/library/os/CMakeLists.txt @@ -9,4 +9,21 @@ Boost::system ) -ADD_TEST(NAME test_network COMMAND test_network) \ No newline at end of file +ADD_TEST(NAME test_network COMMAND test_network) + +add_executable( test_execution_environment + execution_environment_test.cpp +) + +target_link_libraries( test_execution_environment + licensecc_static + Boost::unit_test_framework + Boost::filesystem + Boost::system +) + +ADD_TEST(NAME test_execution_environment COMMAND test_execution_environment) +if(CODE_COVERAGE AND UNIX) + target_compile_options(test_network PUBLIC -O0 -g --coverage) + target_compile_options(test_execution_environment PUBLIC -O0 -g --coverage) +endif(CODE_COVERAGE AND UNIX) -- Gitblit v1.9.1