-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
37 lines (32 loc) · 905 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
cmake_minimum_required(VERSION 3.12.0)
project(margolus)
file(GLOB PROJECT_FILES
"${CMAKE_CURRENT_SOURCE_DIR}/include/*.hpp"
"${CMAKE_CURRENT_SOURCE_DIR}/src/*.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/lib/popl/*.hpp"
"${CMAKE_CURRENT_SOURCE_DIR}/lib/runtime-bitset-cpp/*.hpp"
)
if(MSVC)
add_compile_options(/w4)
else()
add_compile_options(-Wall -Wextra -Wpedantic)
endif()
add_executable(${PROJECT_NAME} ${PROJECT_FILES})
add_definitions(-DMAX_SCREEN_ANY=16384)
add_definitions(-DDEFAULT_NEW_WIDTH=80)
add_definitions(-DDEFAULT_NEW_HEIGHT=48)
add_definitions(-DDEFAULT_RENDERER=\"ANSI\")
add_definitions(-DDEFAULT_NEW_RULESET=\"BILLIARD_BALL\")
target_include_directories(
${PROJECT_NAME}
PUBLIC include
PUBLIC lib/popl
PUBLIC lib/runtime-bitset-cpp
)
target_link_libraries(
${PROJECT_NAME}
)
target_compile_features(
${PROJECT_NAME}
PRIVATE cxx_std_11
)