diff --git a/doc/namespaces.dox b/doc/namespaces.dox index f40fe649c..721043580 100644 --- a/doc/namespaces.dox +++ b/doc/namespaces.dox @@ -39,7 +39,7 @@ target: find_package(Magnum REQUIRED) # ... -target_link_libraries(your-app Magnum::Magnum) +target_link_libraries(your-app PRIVATE Magnum::Magnum) @endcode Parts of this library are additionally available in a form of @@ -66,7 +66,7 @@ library: find_package(Magnum REQUIRED Sdl2Application) # ... -target_link_libraries(your-app Magnum::Application) +target_link_libraries(your-app PRIVATE Magnum::Application) @endcode See documentation of particular `*Application` classs, the @@ -90,7 +90,7 @@ target: find_package(Magnum REQUIRED) # ... -target_link_libraries(your-app Magnum::Magnum) +target_link_libraries(your-app PRIVATE Magnum::Magnum) @endcode See @ref building, @ref cmake, @ref matrix-vector and @ref transformations for @@ -132,7 +132,7 @@ target: find_package(Magnum REQUIRED) # ... -target_link_libraries(your-app Magnum::Magnum) +target_link_libraries(your-app PRIVATE Magnum::Magnum) @endcode See @ref building, @ref cmake and @ref types for more information. @@ -162,7 +162,7 @@ target: find_package(Magnum REQUIRED) # ... -target_link_libraries(your-app Magnum::Magnum) +target_link_libraries(your-app PRIVATE Magnum::Magnum) @endcode See @ref building and @ref cmake for more information. @@ -197,7 +197,7 @@ target: find_package(Magnum REQUIRED) # ... -target_link_libraries(your-app Magnum::Magnum) +target_link_libraries(your-app PRIVATE Magnum::Magnum) @endcode See @ref building and @ref cmake for more information. @@ -222,7 +222,7 @@ target: find_package(Magnum REQUIRED) # ... -target_link_libraries(your-app Magnum::Magnum) +target_link_libraries(your-app PRIVATE Magnum::Magnum) @endcode See @ref building and @ref cmake for more information. @@ -273,7 +273,7 @@ set(CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/modules/" ${CMAKE_MODULE_PATH}) find_package(Magnum REQUIRED Audio) # ... -target_link_libraries(your-app Magnum::Audio) +target_link_libraries(your-app PRIVATE Magnum::Audio) @endcode Additional plugins and utilities are built separately. See particular @@ -303,7 +303,7 @@ the `Magnum` package and link to the `Magnum::DebugTools` target: find_package(Magnum REQUIRED DebugTools) # ... -target_link_libraries(your-app Magnum::DebugTools) +target_link_libraries(your-app PRIVATE Magnum::DebugTools) @endcode See @ref building, @ref cmake and @ref debug-tools for more information. @@ -327,7 +327,7 @@ target: find_package(Magnum REQUIRED GL) # ... -target_link_libraries(your-app Magnum::GL) +target_link_libraries(your-app PRIVATE Magnum::GL) @endcode In case you're building for EGL or OpenGL ES platforms, you also need to copy @@ -373,7 +373,7 @@ the `Magnum` package and link to the `Magnum::MeshTools` target: find_package(Magnum REQUIRED MeshTools) # ... -target_link_libraries(your-app Magnum::MeshTools) +target_link_libraries(your-app PRIVATE Magnum::MeshTools) @endcode Note that functionality depending on @ref GL APIs is available only if Magnum @@ -399,7 +399,7 @@ the `Magnum` package and link to the `Magnum::Primitives` target: find_package(Magnum REQUIRED Primitives) # ... -target_link_libraries(your-app Magnum::Primitives) +target_link_libraries(your-app PRIVATE Magnum::Primitives) @endcode See @ref building and @ref cmake for more information. @@ -421,7 +421,7 @@ the `Magnum` package and link to the `Magnum::SceneGraph` target: find_package(Magnum REQUIRED SceneGraph) # ... -target_link_libraries(your-app Magnum::SceneGraph) +target_link_libraries(your-app PRIVATE Magnum::SceneGraph) @endcode See @ref building, @ref cmake and @ref scenegraph for more information. @@ -443,7 +443,7 @@ use this library with CMake, you need to request the `Shaders` component of the find_package(Magnum REQUIRED Shaders) # ... -target_link_libraries(your-app Magnum::Shaders) +target_link_libraries(your-app PRIVATE Magnum::Shaders) @endcode See @ref building, @ref cmake and @ref shaders for more information. @@ -508,7 +508,7 @@ this library with CMake, you need to request the `Text` component of the find_package(Magnum REQUIRED Text) # ... -target_link_libraries(your-app Magnum::Text) +target_link_libraries(your-app PRIVATE Magnum::Text) @endcode Additional plugins and utilities are built separately. See particular `*Font` @@ -535,7 +535,7 @@ component of the `Magnum` package in CMake and link to the find_package(Magnum REQUIRED TextureTools) # ... -target_link_libraries(your-app Magnum::TextureTools) +target_link_libraries(your-app PRIVATE Magnum::TextureTools) @endcode Note that functionality depending on @ref GL APIs is available only if Magnum @@ -564,7 +564,7 @@ this library with CMake, you need to request the `Trade` component of the find_package(Magnum REQUIRED Trade) # ... -target_link_libraries(your-app Magnum::Trade) +target_link_libraries(your-app PRIVATE Magnum::Trade) @endcode Additional plugins and utilities are built separately. See particular @@ -590,7 +590,7 @@ package and link to the `Magnum::Vk` target: find_package(Magnum REQUIRED Vk) # ... -target_link_libraries(your-app Magnum::Vk) +target_link_libraries(your-app PRIVATE Magnum::Vk) @endcode See @ref building, @ref cmake and @ref vulkan for more information. diff --git a/src/Magnum/Audio/Extensions.h b/src/Magnum/Audio/Extensions.h index 6b8ba91d4..84dfff299 100644 --- a/src/Magnum/Audio/Extensions.h +++ b/src/Magnum/Audio/Extensions.h @@ -54,7 +54,7 @@ this library with CMake, you need to request the `Audio` component of the find_package(Magnum REQUIRED Audio) # ... -target_link_libraries(your-app Magnum::Audio) +target_link_libraries(your-app PRIVATE Magnum::Audio) @endcode See @ref building and @ref cmake for more information. diff --git a/src/Magnum/GL/Extensions.h b/src/Magnum/GL/Extensions.h index 84adf65e9..6ec5c37c6 100644 --- a/src/Magnum/GL/Extensions.h +++ b/src/Magnum/GL/Extensions.h @@ -70,7 +70,7 @@ package and link to the `Magnum::GL` target: find_package(Magnum REQUIRED GL) # ... -target_link_libraries(your-app Magnum::GL) +target_link_libraries(your-app PRIVATE Magnum::GL) @endcode See @ref building, @ref cmake and @ref opengl for more information. diff --git a/src/Magnum/Platform/AndroidApplication.h b/src/Magnum/Platform/AndroidApplication.h index 26b8ed380..9fc6b7fa4 100644 --- a/src/Magnum/Platform/AndroidApplication.h +++ b/src/Magnum/Platform/AndroidApplication.h @@ -105,7 +105,7 @@ endif() # ... if(CORRADE_TARGET_ANDROID) - target_link_libraries(your-app Magnum::AndroidApplication) + target_link_libraries(your-app PRIVATE Magnum::AndroidApplication) endif() @endcode diff --git a/src/Magnum/Platform/EmscriptenApplication.h b/src/Magnum/Platform/EmscriptenApplication.h index 35fbfdbb0..06bcf450b 100644 --- a/src/Magnum/Platform/EmscriptenApplication.h +++ b/src/Magnum/Platform/EmscriptenApplication.h @@ -122,7 +122,7 @@ endif() # ... if(CORRADE_TARGET_EMSCRIPTEN) - target_link_libraries(your-app Magnum::EmscriptenApplication) + target_link_libraries(your-app PRIVATE Magnum::EmscriptenApplication) endif() @endcode diff --git a/src/Magnum/Platform/GlfwApplication.h b/src/Magnum/Platform/GlfwApplication.h index 39d5cfab0..a6c300a3c 100644 --- a/src/Magnum/Platform/GlfwApplication.h +++ b/src/Magnum/Platform/GlfwApplication.h @@ -110,7 +110,7 @@ set(CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/modules/" ${CMAKE_MODULE_PATH}) find_package(Magnum REQUIRED GlfwApplication) # ... -target_link_libraries(your-app Magnum::GlfwApplication) +target_link_libraries(your-app PRIVATE Magnum::GlfwApplication) @endcode If no other application is requested, you can also use the generic diff --git a/src/Magnum/Platform/GlxApplication.h b/src/Magnum/Platform/GlxApplication.h index c60279d97..99a4c8ea8 100644 --- a/src/Magnum/Platform/GlxApplication.h +++ b/src/Magnum/Platform/GlxApplication.h @@ -65,7 +65,7 @@ In order to use this library from Cmake, you need to request the find_package(Magnum REQUIRED GlxApplication) # ... -target_link_libraries(your-app Magnum::GlxApplication) +target_link_libraries(your-app PRIVATE Magnum::GlxApplication) @endcode If no other application is requested, you can also use the generic diff --git a/src/Magnum/Platform/Sdl2Application.h b/src/Magnum/Platform/Sdl2Application.h index 5832adbfe..a3a42ce41 100644 --- a/src/Magnum/Platform/Sdl2Application.h +++ b/src/Magnum/Platform/Sdl2Application.h @@ -219,7 +219,7 @@ set(CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/modules/" ${CMAKE_MODULE_PATH}) find_package(Magnum REQUIRED Sdl2Application) # ... -target_link_libraries(your-app Magnum::Sdl2Application) +target_link_libraries(your-app PRIVATE Magnum::Sdl2Application) @endcode If no other application is requested, you can also use the generic diff --git a/src/Magnum/Platform/WindowlessCglApplication.h b/src/Magnum/Platform/WindowlessCglApplication.h index 6acc84c94..6b7c70354 100644 --- a/src/Magnum/Platform/WindowlessCglApplication.h +++ b/src/Magnum/Platform/WindowlessCglApplication.h @@ -186,7 +186,7 @@ endif() # ... if(CORRADE_TARGET_APPLE) - target_link_libraries(your-app Magnum::WindowlessCglApplication) + target_link_libraries(your-app PRIVATE Magnum::WindowlessCglApplication) endif() @endcode diff --git a/src/Magnum/Platform/WindowlessEglApplication.h b/src/Magnum/Platform/WindowlessEglApplication.h index d67e612ae..1f144f6e7 100644 --- a/src/Magnum/Platform/WindowlessEglApplication.h +++ b/src/Magnum/Platform/WindowlessEglApplication.h @@ -351,7 +351,7 @@ component of the `Magnum` package and link to the find_package(Magnum REQUIRED WindowlessEglApplication) # ... -target_link_libraries(your-app Magnum::WindowlessEglApplication) +target_link_libraries(your-app PRIVATE Magnum::WindowlessEglApplication) @endcode If no other application is requested, you can also use the generic diff --git a/src/Magnum/Platform/WindowlessGlxApplication.h b/src/Magnum/Platform/WindowlessGlxApplication.h index e56f3c757..ef3465afb 100644 --- a/src/Magnum/Platform/WindowlessGlxApplication.h +++ b/src/Magnum/Platform/WindowlessGlxApplication.h @@ -283,7 +283,7 @@ endif() # ... if(CORRADE_TARGET_UNIX) - target_link_libraries(your-app Magnum::WindowlessGlxApplication) + target_link_libraries(your-app PRIVATE Magnum::WindowlessGlxApplication) endif() @endcode diff --git a/src/Magnum/Platform/WindowlessIosApplication.h b/src/Magnum/Platform/WindowlessIosApplication.h index 58418d8c0..bb73cb782 100644 --- a/src/Magnum/Platform/WindowlessIosApplication.h +++ b/src/Magnum/Platform/WindowlessIosApplication.h @@ -181,7 +181,7 @@ endif() # ... if(CORRADE_TARGET_IOS) - target_link_libraries(your-app Magnum::WindowlessIosApplication) + target_link_libraries(your-app PRIVATE Magnum::WindowlessIosApplication) endif() @endcode diff --git a/src/Magnum/Platform/WindowlessWglApplication.h b/src/Magnum/Platform/WindowlessWglApplication.h index 969c41bf9..4c7c61912 100644 --- a/src/Magnum/Platform/WindowlessWglApplication.h +++ b/src/Magnum/Platform/WindowlessWglApplication.h @@ -281,7 +281,7 @@ endif() # ... if(CORRADE_TARGET_WINDOWS) - target_link_libraries(your-app Magnum::WindowlessWglApplication) + target_link_libraries(your-app PRIVATE Magnum::WindowlessWglApplication) endif() @endcode diff --git a/src/Magnum/Platform/WindowlessWindowsEglApplication.h b/src/Magnum/Platform/WindowlessWindowsEglApplication.h index 252ea57a4..18c774374 100644 --- a/src/Magnum/Platform/WindowlessWindowsEglApplication.h +++ b/src/Magnum/Platform/WindowlessWindowsEglApplication.h @@ -254,7 +254,7 @@ endif() # ... if(CORRADE_TARGET_WINDOWS) - target_link_libraries(your-app Magnum::WindowlessWindowsEglApplication) + target_link_libraries(your-app PRIVATE Magnum::WindowlessWindowsEglApplication) endif() @endcode diff --git a/src/Magnum/Platform/XEglApplication.h b/src/Magnum/Platform/XEglApplication.h index 972e9a0aa..90455abfb 100644 --- a/src/Magnum/Platform/XEglApplication.h +++ b/src/Magnum/Platform/XEglApplication.h @@ -66,7 +66,7 @@ target: find_package(Magnum REQUIRED XEglApplication) # ... -target_link_libraries(your-app Magnum::XEglApplication) +target_link_libraries(your-app PRIVATE Magnum::XEglApplication) @endcode If no other application is requested, you can also use the generic