From 68b91c6db2888cc852537f56e46f8d7a230401cb Mon Sep 17 00:00:00 2001 From: Gabriele Contini <contini.mailing@gmail.com> Date: 周六, 16 5月 2020 22:29:41 +0800 Subject: [PATCH] fix mingw --- 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