diff options
author | Hampus <hampus@hampusmat.com> | 2021-12-14 22:54:25 +0100 |
---|---|---|
committer | Hampus <hampus@hampusmat.com> | 2021-12-14 22:54:25 +0100 |
commit | 53a73d29f227fc76092e786ffa3bfba7edeae46b (patch) | |
tree | b76bd8777b2b1ac2450066f27a42c18b82c6cf7d | |
parent | 828c6563124baeff4d80aeefd15b6bbfd7ff86a2 (diff) |
build: improve CMakeLists
-rw-r--r-- | CMakeLists.txt | 7 | ||||
-rw-r--r-- | src/CMakeLists.txt | 7 |
2 files changed, 6 insertions, 8 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index a817aba..f74c218 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,4 +4,9 @@ set(CMAKE_C_STANDARD 11) project(mazerator_project C) -add_subdirectory(src) +file(GLOB SOURCES src/*.c) + +add_executable(mazerator ${SOURCES}) + +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall") + diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt deleted file mode 100644 index 090164c..0000000 --- a/src/CMakeLists.txt +++ /dev/null @@ -1,7 +0,0 @@ -project(mazerator C) - -set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ../bin) - -add_executable(mazerator mazerator.c maze.c utils.c position_stack.c) - -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall") |