colobot/CMakeLists.txt

24 lines
549 B
CMake
Raw Normal View History

# CMake project file for compiling with GCC/MinGW
2012-04-14 23:02:51 +00:00
cmake_minimum_required(VERSION 2.8)
project(colobot C CXX)
2012-04-14 23:02:51 +00:00
# Required packages
find_package(OpenGL REQUIRED)
find_package(SDL REQUIRED)
find_package(SDL_image REQUIRED)
find_package(PNG REQUIRED)
# TODO: check for SDL version. Should be >= 1.2.10
# Build with debugging symbols
2012-04-14 23:02:51 +00:00
set(CMAKE_BUILD_TYPE debug)
# Global compile flags
set(CMAKE_CXX_FLAGS_RELEASE "-O2 -Wall -std=gnu++0x")
set(CMAKE_CXX_FLAGS_DEBUG "-g -O0 -Wall -std=gnu++0x")
2012-04-14 23:02:51 +00:00
# Subdirectory with sources
2012-04-14 23:02:51 +00:00
add_subdirectory(src bin)