|
|
|
@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 3.1)
|
|
|
|
|
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR})
|
|
|
|
|
|
|
|
|
|
# Set the project name
|
|
|
|
|
set(PNAME floppy-bird)
|
|
|
|
|
set(PNAME conways-game-of-life)
|
|
|
|
|
project(${PNAME})
|
|
|
|
|
|
|
|
|
|
# Set up variables, and find SFML
|
|
|
|
@ -30,4 +30,4 @@ target_link_libraries (${PNAME} ${SFML_LIBRARIES} ${SFML_DEPENDENCIES})
|
|
|
|
|
# Setup to use C++11 + others
|
|
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
|
|
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthread")
|
|
|
|
|
set_property(TARGET ${PNAME} PROPERTY CXX_STANDARD 11) # Use C++11
|
|
|
|
|
set_property(TARGET ${PNAME} PROPERTY CXX_STANDARD 11) # Use C++11
|
|
|
|
|