diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/CMakeLists.txt | 16 | ||||
-rw-r--r-- | src/crepe/CMakeLists.txt | 3 | ||||
-rw-r--r-- | src/crepe/main.cpp | 3 | ||||
-rw-r--r-- | src/makefile | 2 |
4 files changed, 24 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt new file mode 100644 index 0000000..3ade1e3 --- /dev/null +++ b/src/CMakeLists.txt @@ -0,0 +1,16 @@ +cmake_minimum_required(VERSION 3.28) + +set(CMAKE_C_STANDARD 11) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_EXPORT_COMPILE_COMMANDS 1) + +# enable debug features +set(CMAKE_BUILD_TYPE Debug) +add_compile_definitions(DEBUG) + +project(crepe C CXX) + +add_executable(main) + +add_subdirectory(crepe) + diff --git a/src/crepe/CMakeLists.txt b/src/crepe/CMakeLists.txt new file mode 100644 index 0000000..392b7d7 --- /dev/null +++ b/src/crepe/CMakeLists.txt @@ -0,0 +1,3 @@ +target_sources(main PUBLIC + main.cpp +) diff --git a/src/crepe/main.cpp b/src/crepe/main.cpp new file mode 100644 index 0000000..8e9a184 --- /dev/null +++ b/src/crepe/main.cpp @@ -0,0 +1,3 @@ +#include <stdio.h> + +int main() { printf("Hello World!\n"); } diff --git a/src/makefile b/src/makefile new file mode 100644 index 0000000..8352615 --- /dev/null +++ b/src/makefile @@ -0,0 +1,2 @@ +include ../lazy.mk + |