This commit is contained in:
1 parent
e0768cde3c
commit
0126196ea8
2 files changed
+17
-2
No files matched your search
@@ -32,12 +32,18 @@ target_include_directories(ChaosTests PRIVATE
|
||||
target_compile_options(ChaosTests PRIVATE -Wunused -Werror=unused)
|
||||
|
||||
option(CHAOS_COVERAGE "Enable coverage" OFF)
|
||||
option(CHAOS_ASANUBSAN "Enable ASan and UBSan" OFF)
|
||||
|
||||
if(CHAOS_COVERAGE)
|
||||
target_compile_options(ChaosTests PRIVATE --coverage)
|
||||
target_link_options(ChaosTests PRIVATE --coverage)
|
||||
endif()
|
||||
|
||||
if(CHAOS_ASANUBSAN)
|
||||
target_compile_options(ChaosTests PRIVATE -fsanitize=address,undefined)
|
||||
target_link_options(ChaosTests PRIVATE -fsanitize=address,undefined)
|
||||
endif()
|
||||
|
||||
include(GoogleTest)
|
||||
|
||||
gtest_discover_tests(ChaosTests)
|
||||
Reference in new issue
Block a user