-
Notifications
You must be signed in to change notification settings - Fork 2
/
CMakeLists.txt
32 lines (24 loc) · 1.01 KB
/
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
25
26
27
28
29
30
31
32
cmake_minimum_required(VERSION 2.8.0)
project(NoisyHunter)
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake-extras/")
set(Boost_USE_STATIC_LIBS ON)
set(Boost_USE_MULTITHREADED ON)
find_package(SFML 2 COMPONENTS audio graphics network system window REQUIRED)
find_package(Bullet REQUIRED)
find_package(Boost COMPONENTS filesystem program_options system date_time REQUIRED)
find_package(ImageMagick COMPONENTS Magick++ REQUIRED)
add_definitions(-Wall -Wextra -g -pedantic -fPIC -std=c++0x -DBOOST_FILESYSTEM_VERSION=3)
set(CMAKE_BUILD_TYPE "Debug")
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)
set(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/lib)
include_directories(
"${CMAKE_SOURCE_DIR}/engine/src/"
${Boost_INCLUDE_DIRS}
${SFML_INCLUDE_DIRS}
${BULLET_INCLUDE_DIRS}
${ImageMagick_INCLUDE_DIRS}
)
add_subdirectory("${CMAKE_SOURCE_DIR}/engine/")
add_subdirectory("${CMAKE_SOURCE_DIR}/game/")
add_subdirectory("${CMAKE_SOURCE_DIR}/engine/demos/pong/")
add_subdirectory("${CMAKE_SOURCE_DIR}/engine/tools/editor/")