Skip to content
Snippets Groups Projects
Commit 21545ff5 authored by Joseph Walton-Rivers's avatar Joseph Walton-Rivers
Browse files

make use of 'target_sources' to cleanup build scripts

parent 5203c914
No related branches found
No related tags found
No related merge requests found
Pipeline #3029 failed
......@@ -2,14 +2,9 @@ configure_file(FgglConfig.h.in FgglConfig.h)
add_library(fggl fggl.cpp
ecs/ecs.cpp
gfx/window.cpp
gfx/renderer.cpp
gfx/input.cpp
gfx/shader.cpp
gfx/ogl.cpp
data/model.cpp
data/procedural.cpp
debug/debug.cpp)
)
target_include_directories(fggl PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../)
# Graphics backend
......@@ -18,5 +13,3 @@ target_link_libraries(fggl glfw)
# Debug backend
add_subdirectory(debug)
target_link_libraries(fggl imgui)
target_sources(fggl
PRIVATE
debug.cpp
)
target_link_libraries(fggl imgui)
# Sources
target_sources(fggl
PRIVATE
window.cpp
renderer.cpp
input.cpp
shader.cpp
ogl.cpp
)
# OpenGL Backend
find_package( OpenGL REQUIRED )
include_directories( ${OPENGL_INCLUDE_DIR} )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment