mirror of
https://github.com/enduro2d/enduro2d.git
synced 2025-12-15 00:11:55 +07:00
coverage mode
This commit is contained in:
@@ -49,6 +49,18 @@ if(MSVC)
|
||||
endif()
|
||||
endif(MSVC)
|
||||
|
||||
#
|
||||
# coverage mode
|
||||
#
|
||||
|
||||
option(E2D_BUILD_WITH_COVERAGE "Build with coverage" OFF)
|
||||
if(E2D_BUILD_WITH_COVERAGE AND (CMAKE_CXX_COMPILER_ID MATCHES "Clang"))
|
||||
add_definitions(-DE2D_BUILD_WITH_COVERAGE)
|
||||
set(E2D_COVERAGE_FLAGS "--coverage")
|
||||
set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} ${E2D_COVERAGE_FLAGS}")
|
||||
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} ${E2D_COVERAGE_FLAGS}")
|
||||
endif()
|
||||
|
||||
#
|
||||
# sanitizer mode
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user