mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-11-09 13:10:25 +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()
|