From 53a73d29f227fc76092e786ffa3bfba7edeae46b Mon Sep 17 00:00:00 2001 From: Hampus Date: Tue, 14 Dec 2021 22:54:25 +0100 Subject: build: improve CMakeLists --- CMakeLists.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'CMakeLists.txt') 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") + -- cgit v1.2.3-18-g5258