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