Disable tests for CMake <2.8.8

This commit is contained in:
Lukas W
2015-01-15 15:57:50 +01:00
parent 2f7820a6d9
commit ff882e021e
2 changed files with 33 additions and 11 deletions

View File

@@ -1,3 +1,10 @@
IF(CMAKE_MAJOR_VERSION LESS 2 OR
CMAKE_MINOR_VERSION LESS 8 OR
CMAKE_PATCH_VERSION LESS 8)
MESSAGE("-- Unit tests are only available in CMake >=2.8.8. You have ${CMAKE_VERSION}")
RETURN()
ENDIF()
INCLUDE_DIRECTORIES("${CMAKE_CURRENT_SOURCE_DIR}")
INCLUDE_DIRECTORIES("${CMAKE_CURRENT_BINARY_DIR}")
INCLUDE_DIRECTORIES("${CMAKE_SOURCE_DIR}/include")