diff options
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 82a6e80..092a812 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,12 +5,19 @@ cmake_minimum_required(VERSION 2.8) project(colobot C CXX) # Required packages -find_package(OpenGL REQUIRED) -find_package(SDL REQUIRED) -find_package(SDL_image REQUIRED) -find_package(PNG REQUIRED) +find_package(OpenGL 1.4 REQUIRED) +find_package(SDL 1.2.10 REQUIRED) +find_package(SDL_image 1.2 REQUIRED) +find_package(PNG 1.2 REQUIRED) -# TODO: check for SDL version. Should be >= 1.2.10 +# GLEW requirement depends on platform +# By default it is auto detected +# This setting may be used to override +# Possible values: +# - auto -> determine automatically +# - 1 -> always enable +# - 0 -> always disable +set(USE_GLEW auto) # Build with debugging symbols set(CMAKE_BUILD_TYPE debug) @@ -19,5 +26,8 @@ set(CMAKE_BUILD_TYPE debug) set(CMAKE_CXX_FLAGS_RELEASE "-O2 -Wall -std=gnu++0x") set(CMAKE_CXX_FLAGS_DEBUG "-g -O0 -Wall -std=gnu++0x") +# Include cmake directory +SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${colobot_SOURCE_DIR}/cmake") + # Subdirectory with sources add_subdirectory(src bin) |