-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
41 lines (35 loc) · 1.07 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
33
34
35
36
37
38
39
40
41
cmake_minimum_required (VERSION 3.1)
project(zzt-puzzle)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake)
set(CMAKE_C_COMPILER gcc)
set(CMAKE_CXX_COMPILER g++)
set(PROG_NAME "zzt-puzzle")
set(WRITER_PROG_NAME "writer")
# There isn't actually any pragma onces outside headers, but my LLVM IDE
# integration flags header pragmas as non-header pragmas due to a known bug.
# Werror and Wextra is currently disabled because linux-reconstruction triggers
# too many of them.
set(CMAKE_CXX_FLAGS
"-O3 -mtune=native -march=native -Wall \
-Wno-error=unknown-pragmas \
-Wno-pragma-once-outside-header -fopenmp")
add_executable(${PROG_NAME}
board.cc
coord.cc
generator.cc
puzzle.cc
solver/dfs.cc
random/random.cc)
add_executable(${WRITER_PROG_NAME}
board.cc
coord.cc
generator.cc
solver/dfs.cc
random/random.cc
linux-reconstruction-of-zzt/csrc/world.cc
linux-reconstruction-of-zzt/csrc/board.cc
linux-reconstruction-of-zzt/csrc/tools.cc
linux-reconstruction-of-zzt/csrc/serialization.cc
linux-reconstruction-of-zzt/csrc/elements/info.cc
writer.cc)