diff options
| author | Sopár Adrián <adrian.sopar@protonmail.com> | 2024-06-27 21:05:23 +0200 |
|---|---|---|
| committer | Sopár Adrián <adrian.sopar@protonmail.com> | 2024-06-27 21:05:23 +0200 |
| commit | 05133e09243ca4cdea8051755ccfc5ff8b796f59 (patch) | |
| tree | ac01cb0e0ea016e9e106f8c1268d95dc72b98e7a | |
| parent | db00fd457bb6a6ce4eea57c9e46cc06867b1c5c6 (diff) | |
Experimenting with cmake: now you can build with it, but it's far from perfect.
| -rw-r--r-- | CMakeLists.txt | 14 |
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}) + |
