Skip to content

Conversation

@andreagen0r
Copy link

Just adding a copy command to copy the Shaders directory where the application will find the shaders

Signed-off-by: André Agenor <andreagenor@icloud.com>
target_link_libraries(App glfw)
target_link_libraries(App glad)
target_link_libraries(App glm)
target_link_libraries(App glm)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

have you consider doing this?

add_executable(App 
    Source/Main.cpp
    Source/Shader.h
    Source/Shader.cpp
    Source/Renderer.h
    Source/Renderer.cpp
)

target_link_libraries(App 
    glfw
    glad
    glm
)

file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/Shaders/
    DESTINATION 
        ${CMAKE_CURRENT_BINARY_DIR}/Shaders/
)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants