2P11/CMakeLists.txt
2015-05-07 06:57:25 +02:00

35 lines
816 B
CMake

#==================== PREPROCESSOR DEFINITION ====================
#Define which controller use.
#Avalaible controllers are:
# - CONSOLECONTROLLER
# - SFMLCONTROLLER
add_definitions(-DSFMLCONTROLLER)
add_definitions(-DLIVESKINNING)
#==================== START CMAKE ====================
#Defined project name
project(2P11)
#Assign Modules path
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules/")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FGS} -std=c++11 -lpthread")
#Defined project VERSION
set(VERSION_MAJOR 0)
set(VERSION_MINOR 1)
set(VERSION_REV 0)
set(VERSION "${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_REV}")
set( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin )
#Minimum cmake VERSION
cmake_minimum_required(VERSION 2.6)
#Add source directory
add_subdirectory(./src)