Add option to disable building examples or tests.
This commit is contained in:
parent
b1078ce61c
commit
3422503eeb
@ -18,13 +18,17 @@ IF(ENABLE_CPP0X)
|
|||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
||||||
ADD_SUBDIRECTORY(library)
|
ADD_SUBDIRECTORY(library)
|
||||||
ADD_SUBDIRECTORY(examples/OpenGL)
|
|
||||||
|
OPTION(ENABLE_EXAMPLES "Should the examples be built" ON)
|
||||||
|
IF(ENABLE_EXAMPLES)
|
||||||
|
ADD_SUBDIRECTORY(examples/OpenGL)
|
||||||
|
ENDIF(ENABLE_EXAMPLES)
|
||||||
|
|
||||||
ADD_DEPENDENCIES(OpenGLExample PolyVoxCore PolyVoxUtil)
|
ADD_DEPENDENCIES(OpenGLExample PolyVoxCore PolyVoxUtil)
|
||||||
|
|
||||||
INCLUDE(Packaging.cmake)
|
INCLUDE(Packaging.cmake)
|
||||||
|
|
||||||
ENABLE_TESTING()
|
|
||||||
INCLUDE(CTest)
|
INCLUDE(CTest)
|
||||||
|
IF(BUILD_TESTING)
|
||||||
ADD_SUBDIRECTORY(tests)
|
ADD_SUBDIRECTORY(tests)
|
||||||
|
ENDIF(BUILD_TESTING)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user