aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt14
1 files changed, 14 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
new file mode 100644
index 0000000..c6617f8
--- /dev/null
+++ b/CMakeLists.txt
@@ -0,0 +1,14 @@
+cmake_minimum_required(VERSION 3.15)
+project(maze VERSION 0.9)
+
+set(CURSES_NEED_WIDE TRUE)
+find_package(Curses REQUIRED)
+set(CMAKE_CXX_FLAGS "-D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600")
+include_directories(${CURSES_INCLUDE_DIR})
+
+file(GLOB_RECURSE maze_SRC CONFIGURE_DEPENDS "src/*")
+add_executable(maze ${maze_SRC})
+
+target_include_directories(maze PRIVATE src/)
+target_link_libraries(maze ${CURSES_LIBRARIES})
+