mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2024-11-25 12:11:33 +08:00
9 lines
322 B
CMake
9 lines
322 B
CMake
|
function(ftxui_check_coverage library)
|
||
|
if (FTXUI_ENABLE_COVERAGE)
|
||
|
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" OR CMAKE_CXX_COMPILER_ID MATCHES ".*Clang")
|
||
|
target_compile_options(${library} INTERFACE --coverage -O0 -g)
|
||
|
target_link_libraries(${library} INTERFACE --coverage)
|
||
|
endif()
|
||
|
endif()
|
||
|
endfunction()
|