added CMake option ENABLE_CHECK_INTERNAL (#2557)

This commit is contained in:
Oliver Stöneberg 2020-03-01 17:11:20 +01:00 committed by GitHub
parent 6ea4f60600
commit 8949c7e569
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 0 deletions

View File

@ -7,3 +7,6 @@ if (UNIX)
endif()
add_definitions(-DFILESDIR="${FILESDIR}")
endif()
if (ENABLE_CHECK_INTERNAL)
add_definitions(-DCHECK_INTERNAL)
endif()

View File

@ -36,6 +36,7 @@ else()
endif()
option(BUILD_TESTS "Build tests" OFF)
option(ENABLE_CHECK_INTERNAL "Enable internal checks" OFF)
option(BUILD_GUI "Build the qt application" OFF)
option(WITH_QCHART "When building GUI(need BUILD_GUI=ON), use Qt5 Charts" OFF)

View File

@ -32,6 +32,7 @@ else()
message( STATUS "BUILD_SHARED_LIBS = ${BUILD_SHARED_LIBS}" )
endif(NOT DEFINED BUILD_SHARED_LIBS)
message( STATUS "BUILD_TESTS = ${BUILD_TESTS}" )
message( STATUS "ENABLE_CHECK_INTERNAL = ${ENABLE_CHECK_INTERNAL}" )
message( STATUS "BUILD_GUI = ${BUILD_GUI}" )
message( STATUS "WITH_QCHART = ${WITH_QCHART}" )
message( STATUS )