From 2dcb5975a0f7a00baf37a083a3e7e443a0726c1a Mon Sep 17 00:00:00 2001 From: 0scar Date: Mon, 5 Feb 2024 18:09:47 +0100 Subject: Add CMake files --- src/CMakeLists.txt | 6 ++++++ src/core/CMakeLists.txt | 10 ++++++++++ src/ctrl/CMakeLists.txt | 7 +++++++ src/rendering/CMakeLists.txt | 6 ++++++ src/resources/CMakeLists.txt | 5 +++++ src/ui/CMakeLists.txt | 4 ++++ src/utils/CMakeLists.txt | 8 ++++++++ 7 files changed, 46 insertions(+) create mode 100644 src/CMakeLists.txt create mode 100644 src/core/CMakeLists.txt create mode 100644 src/ctrl/CMakeLists.txt create mode 100644 src/rendering/CMakeLists.txt create mode 100644 src/resources/CMakeLists.txt create mode 100644 src/ui/CMakeLists.txt create mode 100644 src/utils/CMakeLists.txt (limited to 'src') diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt new file mode 100644 index 0000000..5f0b8b5 --- /dev/null +++ b/src/CMakeLists.txt @@ -0,0 +1,6 @@ +add_subdirectory(core) +add_subdirectory(ctrl) +add_subdirectory(rendering) +add_subdirectory(resources) +add_subdirectory(ui) +add_subdirectory(utils) diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt new file mode 100644 index 0000000..f8c0315 --- /dev/null +++ b/src/core/CMakeLists.txt @@ -0,0 +1,10 @@ +add_library(daw_core + cleanup.c + dltools.c + harness.c + init.c + logging.c + loop.c + memory.c + state.c + ) diff --git a/src/ctrl/CMakeLists.txt b/src/ctrl/CMakeLists.txt new file mode 100644 index 0000000..e086f07 --- /dev/null +++ b/src/ctrl/CMakeLists.txt @@ -0,0 +1,7 @@ +add_library(daw_ctrl + controller.c + ctx.c + input.c + keyboard.c + mouse.c + ) diff --git a/src/rendering/CMakeLists.txt b/src/rendering/CMakeLists.txt new file mode 100644 index 0000000..a7313e9 --- /dev/null +++ b/src/rendering/CMakeLists.txt @@ -0,0 +1,6 @@ +add_library(daw_rendering + gl.c + rendering.c + text.c + window.c + ) diff --git a/src/resources/CMakeLists.txt b/src/resources/CMakeLists.txt new file mode 100644 index 0000000..7fe5cac --- /dev/null +++ b/src/resources/CMakeLists.txt @@ -0,0 +1,5 @@ +add_library(daw_resources + fonts.c + scripts.c + textures.c + ) diff --git a/src/ui/CMakeLists.txt b/src/ui/CMakeLists.txt new file mode 100644 index 0000000..05b2648 --- /dev/null +++ b/src/ui/CMakeLists.txt @@ -0,0 +1,4 @@ +add_library(daw_ui + positioning.c + rendering.c + ) diff --git a/src/utils/CMakeLists.txt b/src/utils/CMakeLists.txt new file mode 100644 index 0000000..3274f55 --- /dev/null +++ b/src/utils/CMakeLists.txt @@ -0,0 +1,8 @@ +add_library(daw_utils + btree.c + fov.c + hashmap.c + misc.c + stack.c + vector.c + ) -- cgit v1.3