Commit 1318fe5a authored by Sadman Kazi's avatar Sadman Kazi 🎸

Add c++11 support

parent 4a6e38a4
cmake_minimum_required(VERSION 3.5)
cmake_minimum_required(VERSION 3.1.0)
project (GameEngine)
macro(use_cxx11)
if (CMAKE_VERSION VERSION_LESS "3.1")
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
set (CMAKE_CXX_FLAGS "--std=gnu++11 ${CMAKE_CXX_FLAGS}")
endif ()
else ()
set (CMAKE_CXX_STANDARD 11)
endif ()
endmacro(use_cxx11)
use_cxx11()
# add compiler flags
add_definitions (
-c
......@@ -49,6 +61,7 @@ include_directories(
${GLEW_INCLUDE_DIRS}
${SDL2_INCLUDE_DIRS}
${ASSIMP_INCLUDE_DIRS}
${GLM_INCLUDE_DIRS}
)
# Define the link libraries
......@@ -57,4 +70,5 @@ target_link_libraries( GameEngine
${GLEW_LIBRARIES}
${SDL2_LIBRARIES}
${ASSIMP_LIBRARIES}
${GLM_LIBRARIES}
)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment