50 lines
781 B
Text
50 lines
781 B
Text
|
|
||
|
|
||
|
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
|
||
|
)
|
||
|
|
||
|
set(paradiso_src
|
||
|
main.cpp
|
||
|
)
|
||
|
|
||
|
add_executable(
|
||
|
paradiso
|
||
|
${paradiso_src}
|
||
|
)
|
||
|
|
||
|
target_link_libraries(paradiso
|
||
|
paradiso_core
|
||
|
)
|
||
|
|
||
|
target_include_directories(paradiso
|
||
|
PRIVATE
|
||
|
lib)
|