Work on better CI integration.

This commit is contained in:
Steffen Schuemann 2019-05-19 12:58:16 +02:00
parent fdf5d37383
commit 61fd23d9cd

View File

@ -13,8 +13,8 @@ if(CMAKE_CXX_COMPILER_ID MATCHES MSVC)
target_compile_definitions(filesystem_test PRIVATE _CRT_SECURE_NO_WARNINGS) target_compile_definitions(filesystem_test PRIVATE _CRT_SECURE_NO_WARNINGS)
endif() endif()
if(DEFINED ENV{GHC_COVERAGE}) if(DEFINED ENV{GHC_COVERAGE})
target_compile_options(filesystem_test_cov PRIVATE "$<$<CONFIG:DEBUG>:--coverage>") target_compile_options(filesystem_test PRIVATE "--coverage")
target_link_libraries(filesystem_test_cov PUBLIC ghc_filesystem PRIVATE --coverage) set_property(TARGET filesystem_test APPEND_STRING PROPERTY LINK_FLAGS " --coverage")
endif() endif()
ParseAndAddCatchTests(filesystem_test filesystem_test) ParseAndAddCatchTests(filesystem_test filesystem_test)
AddExecutableWithStdFS(std_filesystem_test filesystem_test.cpp catch.hpp) AddExecutableWithStdFS(std_filesystem_test filesystem_test.cpp catch.hpp)