forked from aszczepanski/2048
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
34 lines (28 loc) · 847 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
25
26
27
28
29
30
31
32
33
34
project(2048)
cmake_minimum_required(VERSION 3.0)
option(SET_WARNINGS "Compiler warning flags" ON)
option(SET_DEBUG "Compiler debugging flags" ON)
option(USE_STATIC_LIBS "Link with static libraries" OFF)
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake")
#set(CMAKE_POLICY NEW)
#cmake_policy(SET CMP0063 OLD)
include(EnableCXX11)
include(BuildConfig)
if (WIN32)
add_definitions(-DBOOST_ALL_NO_LIB)
set(Boost_USE_STATIC_LIBS ON)
else(WIN32)
set(Boost_USE_STATIC_LIBS OFF)
endif(WIN32)
find_package(Boost 1.49.0 REQUIRED COMPONENTS program_options)
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)
set(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/lib)
include_directories(
src
${Boost_INCLUDE_DIRS}
)
# add new directories here
add_subdirectory(src/common)
add_subdirectory(src/eval)
add_subdirectory(src/io)
add_subdirectory(src/main)