From 259048a195ab362a3b938104138d24d7a8b03115 Mon Sep 17 00:00:00 2001 From: Samuel Walker Date: Sun, 1 Sep 2024 22:22:43 -0600 Subject: [PATCH] working on resources --- CMakeLists.txt | 5 ++++- buildres/test | 0 res/test | 0 3 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 buildres/test create mode 100644 res/test diff --git a/CMakeLists.txt b/CMakeLists.txt index 38915e5..f68d2e3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,8 +3,11 @@ add_subdirectory("deps/glfw") project(Raycaster VERSION 0.1) set(CMAKE_CXX_STANDARD 11) set(CMAKE_CXX_STANDARD_REQUIRED True) -add_executable(raycaster src/main.cpp deps/glad/src/glad.c) +FILE(GLOB Sources src/*.cpp) +FILE(GLOB Resources res/*) +add_executable(raycaster ${Sources} deps/glad/src/glad.c) configure_file(src/RaycasterConfig.h.in RaycasterConfig.h) +FILE(COPY ${Resources} DESTINATION ${CMAKE_BINARY_DIR}/res) target_include_directories(raycaster PUBLIC "${PROJECT_BINARY_DIR}" "deps/glfw/include" diff --git a/buildres/test b/buildres/test new file mode 100644 index 0000000..e69de29 diff --git a/res/test b/res/test new file mode 100644 index 0000000..e69de29