Commit 6312c2a2 authored by Tim Übelhör's avatar Tim Übelhör

find_dependency in config

parent 01ce25bd
......@@ -22,7 +22,7 @@ set(CMAKE_POSITION_INDEPENDENT_CODE ON)
include(GNUInstallDirs)
# the core library
set (scigl_render_INCLUDE_DIRS include)
set(scigl_render_INCLUDE_DIRS include)
add_library(scigl_render
src/gl_context.cpp
src/buffer/frame_buffer.cpp
......
@PACKAGE_INIT@
include(CMakeFindDependencyMacro)
set_and_check(scigl_render_INCLUDE_DIRS "@PACKAGE_scigl_render_INCLUDE_DIRS@")
include(${CMAKE_CURRENT_LIST_DIR}/scigl_renderTargets.cmake)
if(NOT TARGET scigl_render AND NOT scigl_render_BINARY_DIR)
include (${CMAKE_CURRENT_LIST_DIR}/scigl_renderTargets.cmake)
endif()
find_dependency(gl3w REQUIRED)
find_dependency(assimp REQUIRED)
find_dependency(glfw3 REQUIRED)
find_dependency(glm REQUIRED)
check_required_components(scigl_render)
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment