|
|
|
@ -25,9 +25,7 @@ |
|
|
|
# MAGNUM_PLUGINS_DIR - Base directory with dynamic plugins, defaults |
|
|
|
# MAGNUM_PLUGINS_DIR - Base directory with dynamic plugins, defaults |
|
|
|
# to :variable:`MAGNUM_PLUGINS_RELEASE_DIR` in release builds and |
|
|
|
# to :variable:`MAGNUM_PLUGINS_RELEASE_DIR` in release builds and |
|
|
|
# multi-configuration builds or to :variable:`MAGNUM_PLUGINS_DEBUG_DIR` in |
|
|
|
# multi-configuration builds or to :variable:`MAGNUM_PLUGINS_DEBUG_DIR` in |
|
|
|
# debug builds. You can modify all three variables (e.g. set them to ``.`` |
|
|
|
# debug builds |
|
|
|
# when deploying on Windows with plugins stored relatively to the |
|
|
|
|
|
|
|
# executable), the following ``MAGNUM_PLUGINS_*_DIR`` variables depend on it. |
|
|
|
|
|
|
|
# MAGNUM_PLUGINS_FONT[|_DEBUG|_RELEASE]_DIR - Directory with dynamic font |
|
|
|
# MAGNUM_PLUGINS_FONT[|_DEBUG|_RELEASE]_DIR - Directory with dynamic font |
|
|
|
# plugins |
|
|
|
# plugins |
|
|
|
# MAGNUM_PLUGINS_FONTCONVERTER[|_DEBUG|_RELEASE]_DIR - Directory with dynamic |
|
|
|
# MAGNUM_PLUGINS_FONTCONVERTER[|_DEBUG|_RELEASE]_DIR - Directory with dynamic |
|
|
|
@ -67,6 +65,8 @@ |
|
|
|
# TextureTools - TextureTools library |
|
|
|
# TextureTools - TextureTools library |
|
|
|
# Trade - Trade library |
|
|
|
# Trade - Trade library |
|
|
|
# Vk - Vk library |
|
|
|
# Vk - Vk library |
|
|
|
|
|
|
|
# AndroidApplication - Android application |
|
|
|
|
|
|
|
# EmscriptenApplication - Emscripten application |
|
|
|
# GlfwApplication - GLFW application |
|
|
|
# GlfwApplication - GLFW application |
|
|
|
# GlxApplication - GLX application |
|
|
|
# GlxApplication - GLX application |
|
|
|
# Sdl2Application - SDL2 application |
|
|
|
# Sdl2Application - SDL2 application |
|
|
|
@ -125,8 +125,6 @@ |
|
|
|
# MAGNUM_BUILD_DEPRECATED - Defined if compiled with deprecated APIs |
|
|
|
# MAGNUM_BUILD_DEPRECATED - Defined if compiled with deprecated APIs |
|
|
|
# included |
|
|
|
# included |
|
|
|
# MAGNUM_BUILD_STATIC - Defined if compiled as static libraries |
|
|
|
# MAGNUM_BUILD_STATIC - Defined if compiled as static libraries |
|
|
|
# MAGNUM_BUILD_MULTITHREADED - Defined if compiled in a way that allows |
|
|
|
|
|
|
|
# having multiple thread-local Magnum contexts |
|
|
|
|
|
|
|
# MAGNUM_TARGET_GL - Defined if compiled with OpenGL interop |
|
|
|
# MAGNUM_TARGET_GL - Defined if compiled with OpenGL interop |
|
|
|
# MAGNUM_TARGET_GLES - Defined if compiled for OpenGL ES |
|
|
|
# MAGNUM_TARGET_GLES - Defined if compiled for OpenGL ES |
|
|
|
# MAGNUM_TARGET_GLES2 - Defined if compiled for OpenGL ES 2.0 |
|
|
|
# MAGNUM_TARGET_GLES2 - Defined if compiled for OpenGL ES 2.0 |
|
|
|
@ -137,6 +135,13 @@ |
|
|
|
# MAGNUM_TARGET_HEADLESS - Defined if compiled for headless machines |
|
|
|
# MAGNUM_TARGET_HEADLESS - Defined if compiled for headless machines |
|
|
|
# MAGNUM_TARGET_VK - Defined if compiled with Vulkan interop |
|
|
|
# MAGNUM_TARGET_VK - Defined if compiled with Vulkan interop |
|
|
|
# |
|
|
|
# |
|
|
|
|
|
|
|
# The following variables are provided for backwards compatibility purposes |
|
|
|
|
|
|
|
# only when MAGNUM_BUILD_DEPRECATED is enabled and will be removed in a future |
|
|
|
|
|
|
|
# release: |
|
|
|
|
|
|
|
# |
|
|
|
|
|
|
|
# MAGNUM_BUILD_MULTITHREADED - Alias to CORRADE_BUILD_MULTITHREADED. Use |
|
|
|
|
|
|
|
# CORRADE_BUILD_MULTITHREADED instead. |
|
|
|
|
|
|
|
# |
|
|
|
# Additionally these variables are defined for internal usage: |
|
|
|
# Additionally these variables are defined for internal usage: |
|
|
|
# |
|
|
|
# |
|
|
|
# MAGNUM_INCLUDE_DIR - Root include dir (w/o dependencies) |
|
|
|
# MAGNUM_INCLUDE_DIR - Root include dir (w/o dependencies) |
|
|
|
@ -244,7 +249,6 @@ set(_magnumFlags |
|
|
|
# So far that's not a problem, but might become an issue for new flags. |
|
|
|
# So far that's not a problem, but might become an issue for new flags. |
|
|
|
BUILD_DEPRECATED |
|
|
|
BUILD_DEPRECATED |
|
|
|
BUILD_STATIC |
|
|
|
BUILD_STATIC |
|
|
|
BUILD_MULTITHREADED |
|
|
|
|
|
|
|
TARGET_GL |
|
|
|
TARGET_GL |
|
|
|
TARGET_GLES |
|
|
|
TARGET_GLES |
|
|
|
TARGET_GLES2 |
|
|
|
TARGET_GLES2 |
|
|
|
@ -260,6 +264,11 @@ foreach(_magnumFlag ${_magnumFlags}) |
|
|
|
endif() |
|
|
|
endif() |
|
|
|
endforeach() |
|
|
|
endforeach() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# For compatibility only, to be removed at some point |
|
|
|
|
|
|
|
if(MAGNUM_BUILD_DEPRECATED AND CORRADE_BUILD_MULTITHREADED) |
|
|
|
|
|
|
|
set(MAGNUM_BUILD_MULTITHREADED 1) |
|
|
|
|
|
|
|
endif() |
|
|
|
|
|
|
|
|
|
|
|
# OpenGL library preference. Prefer to use GLVND, since that's the better |
|
|
|
# OpenGL library preference. Prefer to use GLVND, since that's the better |
|
|
|
# approach nowadays, but allow the users to override it from outside in case |
|
|
|
# approach nowadays, but allow the users to override it from outside in case |
|
|
|
# it is broken for some reason (Nvidia drivers in Debian's testing (Buster) -- |
|
|
|
# it is broken for some reason (Nvidia drivers in Debian's testing (Buster) -- |
|
|
|
@ -338,10 +347,10 @@ endif() |
|
|
|
set(_MAGNUM_LIBRARY_COMPONENT_LIST |
|
|
|
set(_MAGNUM_LIBRARY_COMPONENT_LIST |
|
|
|
Audio DebugTools GL MeshTools Primitives SceneGraph Shaders Text |
|
|
|
Audio DebugTools GL MeshTools Primitives SceneGraph Shaders Text |
|
|
|
TextureTools Trade Vk |
|
|
|
TextureTools Trade Vk |
|
|
|
AndroidApplication GlfwApplication GlxApplication Sdl2Application |
|
|
|
AndroidApplication EmscriptenApplication GlfwApplication GlxApplication |
|
|
|
XEglApplication WindowlessCglApplication WindowlessEglApplication |
|
|
|
Sdl2Application XEglApplication WindowlessCglApplication |
|
|
|
WindowlessGlxApplication WindowlessIosApplication WindowlessWglApplication |
|
|
|
WindowlessEglApplication WindowlessGlxApplication WindowlessIosApplication |
|
|
|
WindowlessWindowsEglApplication |
|
|
|
WindowlessWglApplication WindowlessWindowsEglApplication |
|
|
|
CglContext EglContext GlxContext WglContext |
|
|
|
CglContext EglContext GlxContext WglContext |
|
|
|
OpenGLTester) |
|
|
|
OpenGLTester) |
|
|
|
set(_MAGNUM_PLUGIN_COMPONENT_LIST |
|
|
|
set(_MAGNUM_PLUGIN_COMPONENT_LIST |
|
|
|
@ -410,6 +419,10 @@ endif() |
|
|
|
|
|
|
|
|
|
|
|
set(_MAGNUM_Trade_DEPENDENCIES ) |
|
|
|
set(_MAGNUM_Trade_DEPENDENCIES ) |
|
|
|
set(_MAGNUM_AndroidApplication_DEPENDENCIES GL) |
|
|
|
set(_MAGNUM_AndroidApplication_DEPENDENCIES GL) |
|
|
|
|
|
|
|
set(_MAGNUM_EmscriptenApplication_DEPENDENCIES) |
|
|
|
|
|
|
|
if(MAGNUM_TARGET_GL) |
|
|
|
|
|
|
|
list(APPEND _MAGNUM_EmscriptenApplication_DEPENDENCIES GL) |
|
|
|
|
|
|
|
endif() |
|
|
|
|
|
|
|
|
|
|
|
set(_MAGNUM_GlfwApplication_DEPENDENCIES ) |
|
|
|
set(_MAGNUM_GlfwApplication_DEPENDENCIES ) |
|
|
|
if(MAGNUM_TARGET_GL) |
|
|
|
if(MAGNUM_TARGET_GL) |
|
|
|
@ -610,6 +623,8 @@ foreach(_component ${Magnum_FIND_COMPONENTS}) |
|
|
|
set_property(TARGET Magnum::${_component} APPEND PROPERTY |
|
|
|
set_property(TARGET Magnum::${_component} APPEND PROPERTY |
|
|
|
INTERFACE_LINK_LIBRARIES android EGL::EGL) |
|
|
|
INTERFACE_LINK_LIBRARIES android EGL::EGL) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# EmscriptenApplication has no additional dependencies |
|
|
|
|
|
|
|
|
|
|
|
# GLFW application dependencies |
|
|
|
# GLFW application dependencies |
|
|
|
elseif(_component STREQUAL GlfwApplication) |
|
|
|
elseif(_component STREQUAL GlfwApplication) |
|
|
|
find_package(GLFW) |
|
|
|
find_package(GLFW) |
|
|
|
|