Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion App/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,11 @@ set(SOURCES
add_executable(App ${SOURCES})
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/
)


add_custom_target(copy_directory ALL
COMMAND ${CMAKE_COMMAND} -E copy_directory
${CMAKE_CURRENT_SOURCE_DIR}/Shaders
${CMAKE_CURRENT_BINARY_DIR}/Shaders
COMMENT "Copying..."
)