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
45
src/lib/CMakeLists.txt
Normal file
45
src/lib/CMakeLists.txt
Normal file
|
@ -0,0 +1,45 @@
|
|||
|
||||
|
||||
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(src/vendor/glad)
|
||||
add_subdirectory(src/vendor/glfw-3.3.8)
|
||||
|
||||
# find_package(OpenGL REQUIRED)
|
||||
|
||||
set(paradiso_srcs
|
||||
src/shader.cpp
|
||||
src/window.cpp
|
||||
src/renderer.cpp
|
||||
src/context.cpp
|
||||
)
|
||||
|
||||
set(paradiso_incs
|
||||
include/paradiso/bitmap.hpp
|
||||
include/paradiso/geometry.hpp
|
||||
include/paradiso/sprite.hpp
|
||||
include/paradiso/shader.hpp
|
||||
include/paradiso/window.hpp
|
||||
include/paradiso/renderer.hpp
|
||||
include/paradiso/context.hpp
|
||||
)
|
||||
|
||||
add_library(paradiso_core
|
||||
${paradiso_incs}
|
||||
${paradiso_srcs}
|
||||
)
|
||||
|
||||
target_include_directories(
|
||||
paradiso_core
|
||||
PUBLIC
|
||||
include
|
||||
)
|
||||
|
||||
target_link_libraries(
|
||||
paradiso_core
|
||||
PRIVATE
|
||||
glfw
|
||||
glad
|
||||
)
|
Loading…
Add table
Add a link
Reference in a new issue