-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
39 lines (31 loc) · 996 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
35
36
37
38
39
cmake_minimum_required(VERSION 2.8)
project(jeopardy)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14")
SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${jeopardy_SOURCE_DIR}/build)
set(SOURCE_FILES
answer.cpp
answer_screen.cpp
base64.cpp
category.cpp
color.cpp
data_loader.cpp
game.cpp
game_state.cpp
invalid_event.cpp
invalid_json.cpp
jeopardy_exception.cpp
jeopardy_round.cpp
main.cpp
new_game.cpp
player.cpp
scoreboard.cpp
setup_game.cpp
websocket_server.cpp
)
add_subdirectory(mediator)
add_definitions(-DRAPIDJSON_HAS_STDSTRING=1)
add_executable(${PROJECT_NAME} ${SOURCE_FILES})
if ( CMAKE_COMPILER_IS_GNUCC )
set_property( TARGET ${PROJECT_NAME} APPEND_STRING PROPERTY COMPILE_FLAGS "-Wall -pedantic" )
endif ( CMAKE_COMPILER_IS_GNUCC )
target_link_libraries(${PROJECT_NAME} pthread boost_system boost_filesystem boost_regex mediator)