mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-10-01 01:26:01 -04:00
Added guard to prevent missing prereqs for coverage..
This commit is contained in:
parent
29be837b97
commit
ac108cd708
@ -32,6 +32,7 @@ include(CheckCXXSourceCompiles)
|
|||||||
option(WITH_TESTS "Enable building of unit tests" ON)
|
option(WITH_TESTS "Enable building of unit tests" ON)
|
||||||
option(WITH_GUI_TESTS "Enable building of GUI tests" OFF)
|
option(WITH_GUI_TESTS "Enable building of GUI tests" OFF)
|
||||||
option(WITH_DEV_BUILD "Use only for development. Disables/warns about deprecated methods." OFF)
|
option(WITH_DEV_BUILD "Use only for development. Disables/warns about deprecated methods." OFF)
|
||||||
|
option(WITH_COVERAGE "Use to build with coverage tests. (GCC ONLY)." OFF)
|
||||||
|
|
||||||
set(KEEPASSXC_VERSION "2.1.0")
|
set(KEEPASSXC_VERSION "2.1.0")
|
||||||
set(KEEPASSXC_VERSION_NUM "2.1.0")
|
set(KEEPASSXC_VERSION_NUM "2.1.0")
|
||||||
@ -88,9 +89,11 @@ endif()
|
|||||||
if(CMAKE_COMPILER_IS_GNUCXX)
|
if(CMAKE_COMPILER_IS_GNUCXX)
|
||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wcast-align")
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wcast-align")
|
||||||
|
|
||||||
# Include code coverage, use with -DCMAKE_BUILD_TYPE=Coverage
|
if(WITH_COVERAGE)
|
||||||
include(CodeCoverage)
|
# Include code coverage, use with -DCMAKE_BUILD_TYPE=Coverage
|
||||||
setup_target_for_coverage(kp_coverage "make test" coverage)
|
include(CodeCoverage)
|
||||||
|
setup_target_for_coverage(kp_coverage "make test" coverage)
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(CMAKE_COMPILER_IS_GNUCC)
|
if(CMAKE_COMPILER_IS_GNUCC)
|
||||||
|
Loading…
Reference in New Issue
Block a user