-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
24 lines (18 loc) · 967 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
project(Game)
cmake_minimum_required(VERSION 2.8)
set(SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR})
if (${CMAKE_CXX_COMPILER_ID} STREQUAL "GNU" OR ${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -pedantic -std=c++1y")
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS} ${CMAKE_CXX_FLAGS_DEBUG} -g")
endif()
set(SDL2PP_WITH_IMAGE ON CACHE BOOL "Enable SDL2_image support")
set(SDL2PP_WITH_TTF ON CACHE BOOL "Enable SDL2_ttf support")
set(SDL2PP_WITH_MIXER ON CACHE BOOL "Enable SDL2_mixer support")
add_subdirectory(third_party/libSDL2pp)
set(JSONCPP_WITH_TESTS OFF CACHE BOOL "Compile and (for jsoncpp_check) run JsonCpp test executables")
set(JSONCPP_WITH_PKGCONFIG_SUPPORT OFF CACHE BOOL "Generate and install .pc files")
add_subdirectory(third_party/jsoncpp)
include_directories(include)
include_directories(SYSTEM ${SDL2PP_INCLUDE_DIRS})
include_directories(SYSTEM ${JSONCPP_INCLUDE_DIR})
add_subdirectory(src)