|
|
|
|
@ -23,15 +23,20 @@
|
|
|
|
|
# DEALINGS IN THE SOFTWARE. |
|
|
|
|
# |
|
|
|
|
|
|
|
|
|
# flextGLPlatform.cpp is compiled as part of Magnum*Context libraries in Platform |
|
|
|
|
add_library(MagnumFlextGLObjects OBJECT flextGL.cpp) |
|
|
|
|
target_include_directories(MagnumFlextGLObjects PUBLIC $<TARGET_PROPERTY:MagnumGL,INTERFACE_INCLUDE_DIRECTORIES>) |
|
|
|
|
if(NOT BUILD_STATIC) |
|
|
|
|
target_compile_definitions(MagnumFlextGLObjects PRIVATE "FlextGL_EXPORTS") |
|
|
|
|
# Some deprecated APIs use headers (but not externally defined symbols) |
|
|
|
|
# from the GL library, link those includes as well |
|
|
|
|
# TODO: remove once compat gets dropped (condition only) |
|
|
|
|
if(WITH_GL) |
|
|
|
|
# flextGLPlatform.cpp is compiled as part of Magnum*Context libraries in Platform |
|
|
|
|
add_library(MagnumFlextGLObjects OBJECT flextGL.cpp) |
|
|
|
|
target_include_directories(MagnumFlextGLObjects PUBLIC $<TARGET_PROPERTY:MagnumGL,INTERFACE_INCLUDE_DIRECTORIES>) |
|
|
|
|
if(NOT BUILD_STATIC) |
|
|
|
|
target_compile_definitions(MagnumFlextGLObjects PRIVATE "FlextGL_EXPORTS") |
|
|
|
|
endif() |
|
|
|
|
if(NOT BUILD_STATIC OR BUILD_STATIC_PIC) |
|
|
|
|
set_target_properties(MagnumFlextGLObjects PROPERTIES POSITION_INDEPENDENT_CODE ON) |
|
|
|
|
endif() |
|
|
|
|
set_target_properties(MagnumFlextGLObjects PROPERTIES FOLDER "MagnumExternal/OpenGL") |
|
|
|
|
endif() |
|
|
|
|
if(NOT BUILD_STATIC OR BUILD_STATIC_PIC) |
|
|
|
|
set_target_properties(MagnumFlextGLObjects PROPERTIES POSITION_INDEPENDENT_CODE ON) |
|
|
|
|
endif() |
|
|
|
|
set_target_properties(MagnumFlextGLObjects PROPERTIES FOLDER "MagnumExternal/OpenGL") |
|
|
|
|
|
|
|
|
|
install(FILES flextGL.h DESTINATION ${MAGNUM_EXTERNAL_INCLUDE_INSTALL_DIR}/OpenGL/GL) |
|
|
|
|
|