reorganized repo to show clear module boundaries
This commit is contained in:
parent
8e00b668ea
commit
536a639bfd
396 changed files with 355 additions and 391 deletions
|
@ -1,36 +1,4 @@
|
|||
|
||||
|
||||
set(GLFW_BUILD_DOCS OFF CACHE BOOL "" FORCE)
|
||||
set(GLFW_BUILD_TESTS OFF CACHE BOOL "" FORCE)
|
||||
set(GLFW_BUILD_EXAMPLES OFF CACHE BOOL "" FORCE)
|
||||
|
||||
|
||||
add_subdirectory(vendor/glad)
|
||||
add_subdirectory(vendor/glfw-3.3.8)
|
||||
|
||||
find_package(OpenGL REQUIRED)
|
||||
|
||||
|
||||
add_library(paradiso_core
|
||||
lib/bitmap.hpp
|
||||
lib/geometry.hpp
|
||||
lib/sprite.hpp
|
||||
lib/shader.hpp
|
||||
lib/shader.cpp
|
||||
lib/window.hpp
|
||||
lib/window.cpp
|
||||
lib/renderer.hpp
|
||||
lib/renderer.cpp
|
||||
lib/context.hpp
|
||||
lib/context.cpp
|
||||
)
|
||||
|
||||
target_link_libraries(
|
||||
paradiso_core
|
||||
PRIVATE
|
||||
glfw
|
||||
glad
|
||||
)
|
||||
add_subdirectory(lib)
|
||||
|
||||
set(paradiso_src
|
||||
main.cpp
|
||||
|
@ -41,7 +9,7 @@ add_executable(
|
|||
${paradiso_src}
|
||||
)
|
||||
|
||||
target_link_libraries(paradiso
|
||||
target_link_libraries(paradiso
|
||||
paradiso_core
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue