mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-11-15 12:13:24 +00:00
10 lines
284 B
CMake
10 lines
284 B
CMake
|
if (WITH_COVERAGE)
|
||
|
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
||
|
add_compile_options( -fprofile-instr-generate -fcoverage-mapping )
|
||
|
link_libraries( -fprofile-instr-generate )
|
||
|
else()
|
||
|
add_compile_options( --coverage -g0 )
|
||
|
link_libraries( --coverage )
|
||
|
endif()
|
||
|
endif()
|