43 lines
800 B
CMake
43 lines
800 B
CMake
|
|
|
|
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)
|
|
|
|
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
|
|
)
|