stripped down all pixwerx code to a minimal istic subset
This commit is contained in:
commit
612677c52d
398 changed files with 164811 additions and 0 deletions
50
src/CMakeLists.txt
Normal file
50
src/CMakeLists.txt
Normal file
|
@ -0,0 +1,50 @@
|
|||
|
||||
|
||||
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)
|
Loading…
Add table
Add a link
Reference in a new issue