From 05133e09243ca4cdea8051755ccfc5ff8b796f59 Mon Sep 17 00:00:00 2001 From: Sopár Adrián Date: Thu, 27 Jun 2024 21:05:23 +0200 Subject: Experimenting with cmake: now you can build with it, but it's far from perfect. --- CMakeLists.txt | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 CMakeLists.txt 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}) + -- cgit v1.2.3