Rename BUILD_TESTING to ENABLE_TESTS and WITH_BINDINGS to ENABLE_BINDINGS
This is for future consistency where ENABLE_ variables will denote optional components of PolyVox and WITH_ variables denote optionally using features provided by external libraries (e.g. OGRE compatibility).
This commit is contained in:
@ -51,11 +51,12 @@ ENDIF(ENABLE_EXAMPLES)
|
||||
|
||||
INCLUDE(Packaging.cmake)
|
||||
|
||||
INCLUDE(CTest)
|
||||
MARK_AS_ADVANCED(FORCE DART_TESTING_TIMEOUT) #This is only needed to hide the variable in the GUI (CMake bug)
|
||||
IF(BUILD_TESTING)
|
||||
OPTION(ENABLE_TESTS "Should the tests be built" ON)
|
||||
IF(ENABLE_TESTS)
|
||||
INCLUDE(CTest)
|
||||
MARK_AS_ADVANCED(FORCE DART_TESTING_TIMEOUT) #This is only needed to hide the variable in the GUI (CMake bug)
|
||||
ADD_SUBDIRECTORY(tests)
|
||||
ENDIF(BUILD_TESTING)
|
||||
ENDIF(ENABLE_TESTS)
|
||||
|
||||
#Check if we will building _and_ bundling the docs
|
||||
IF(DOXYGEN_FOUND AND QT_QCOLLECTIONGENERATOR_EXECUTABLE)
|
||||
@ -73,7 +74,7 @@ MESSAGE(STATUS "-------")
|
||||
MESSAGE(STATUS "Static libraries: " ${BUILD_STATIC_LIBRARIES})
|
||||
MESSAGE(STATUS "Dynamic libraries: " ${BUILD_DYNAMIC_LIBRARIES})
|
||||
MESSAGE(STATUS "Build examples: " ${ENABLE_EXAMPLES})
|
||||
MESSAGE(STATUS "Build tests: " ${BUILD_TESTING})
|
||||
MESSAGE(STATUS "Build tests: " ${ENABLE_TESTS})
|
||||
MESSAGE(STATUS "Build bindings: " ${BUILD_BINDINGS})
|
||||
MESSAGE(STATUS "API Docs available: " ${DOXYGEN_FOUND})
|
||||
MESSAGE(STATUS " - Qt Help bundling: " ${BUILD_AND_BUNDLE_DOCS})
|
||||
|
Reference in New Issue
Block a user