polyvox/CMakeLists.txt
Matt Williams bced686fed Add support for building on the CDash site. Running the 'Experimental'
target (that is, 'make Experimental' on Linux) will submit the build
results to http://my.cdash.org/index.php?project=PolyVox.
I've (hopefully) set up a nightly build as well.
2010-02-24 14:26:49 +00:00

30 lines
882 B
CMake

CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
PROJECT(PolyVox)
SET(POLYVOX_VERSION_MAJOR "0")
SET(POLYVOX_VERSION_MINOR "1")
SET(POLYVOX_VERSION_PATCH "0")
SET(POLYVOX_VERSION "${POLYVOX_VERSION_MAJOR}.${POLYVOX_VERSION_MINOR}.${POLYVOX_VERSION_PATCH}")
OPTION(ENABLE_CPP0X "Does the compiler support C++0x" OFF) #Enable with -DENABLE_CPP0X=ON or in the GUI
IF(ENABLE_CPP0X)
MESSAGE(STATUS "Compiling in C++0x mode")
IF(CMAKE_COMPILER_IS_GNUCXX) #Maybe "OR MINGW"
ADD_DEFINITIONS(-DC_PLUS_PLUS_ZERO_X_SUPPORTED -std=c++0x) #Will only work on GCC
ELSEIF(MSYS)
#ADD_DEFINITIONS(-DC_PLUS_PLUS_ZERO_X_SUPPORTED)
ENDIF()
ENDIF()
ADD_SUBDIRECTORY(library)
ADD_SUBDIRECTORY(examples/OpenGL)
ADD_DEPENDENCIES(OpenGLExample PolyVoxCore PolyVoxUtil)
INCLUDE(Packaging.cmake)
ENABLE_TESTING()
INCLUDE(CTest)
SET (CTEST_START_WITH_EMPTY_BINARY_DIRECTORY TRUE)