From fda5a5bef079930f71bb84276d5b7d1ff0e6b632 Mon Sep 17 00:00:00 2001 From: Tobias Frisch <tfrisch@uni-koblenz.de> Date: Sun, 16 May 2021 12:28:52 +0200 Subject: [PATCH] Fixed shaders path for binary Signed-off-by: Tobias Frisch <tfrisch@uni-koblenz.de> --- projects/first_triangle/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/projects/first_triangle/CMakeLists.txt b/projects/first_triangle/CMakeLists.txt index 40e016a7..eb9addf2 100644 --- a/projects/first_triangle/CMakeLists.txt +++ b/projects/first_triangle/CMakeLists.txt @@ -5,6 +5,10 @@ project(first_triangle) set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_STANDARD_REQUIRED ON) +make_directory(${CMAKE_CURRENT_BINARY_DIR}/shaders) +file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/shaders/vert.spv DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/shaders/vert.spv) +file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/shaders/frag.spv DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/shaders/frag.spv) + # adding source files to the project add_executable(first_triangle src/main.cpp) -- GitLab