Browse Source

doc: use PRIVATE in target_link_libraries() CMake snippets.

The keyword-less version is discouraged for quite some time already.
pull/415/head
Vladimír Vondruš 6 years ago
parent
commit
d6718aaa1d
  1. 36
      doc/namespaces.dox
  2. 2
      src/Magnum/Audio/Extensions.h
  3. 2
      src/Magnum/GL/Extensions.h
  4. 2
      src/Magnum/Platform/AndroidApplication.h
  5. 2
      src/Magnum/Platform/EmscriptenApplication.h
  6. 2
      src/Magnum/Platform/GlfwApplication.h
  7. 2
      src/Magnum/Platform/GlxApplication.h
  8. 2
      src/Magnum/Platform/Sdl2Application.h
  9. 2
      src/Magnum/Platform/WindowlessCglApplication.h
  10. 2
      src/Magnum/Platform/WindowlessEglApplication.h
  11. 2
      src/Magnum/Platform/WindowlessGlxApplication.h
  12. 2
      src/Magnum/Platform/WindowlessIosApplication.h
  13. 2
      src/Magnum/Platform/WindowlessWglApplication.h
  14. 2
      src/Magnum/Platform/WindowlessWindowsEglApplication.h
  15. 2
      src/Magnum/Platform/XEglApplication.h

36
doc/namespaces.dox

@ -39,7 +39,7 @@ target:
find_package(Magnum REQUIRED) find_package(Magnum REQUIRED)
# ... # ...
target_link_libraries(your-app Magnum::Magnum) target_link_libraries(your-app PRIVATE Magnum::Magnum)
@endcode @endcode
Parts of this library are additionally available in a form of Parts of this library are additionally available in a form of
@ -66,7 +66,7 @@ library:
find_package(Magnum REQUIRED Sdl2Application) find_package(Magnum REQUIRED Sdl2Application)
# ... # ...
target_link_libraries(your-app Magnum::Application) target_link_libraries(your-app PRIVATE Magnum::Application)
@endcode @endcode
See documentation of particular `*Application` classs, the See documentation of particular `*Application` classs, the
@ -90,7 +90,7 @@ target:
find_package(Magnum REQUIRED) find_package(Magnum REQUIRED)
# ... # ...
target_link_libraries(your-app Magnum::Magnum) target_link_libraries(your-app PRIVATE Magnum::Magnum)
@endcode @endcode
See @ref building, @ref cmake, @ref matrix-vector and @ref transformations for See @ref building, @ref cmake, @ref matrix-vector and @ref transformations for
@ -132,7 +132,7 @@ target:
find_package(Magnum REQUIRED) find_package(Magnum REQUIRED)
# ... # ...
target_link_libraries(your-app Magnum::Magnum) target_link_libraries(your-app PRIVATE Magnum::Magnum)
@endcode @endcode
See @ref building, @ref cmake and @ref types for more information. See @ref building, @ref cmake and @ref types for more information.
@ -162,7 +162,7 @@ target:
find_package(Magnum REQUIRED) find_package(Magnum REQUIRED)
# ... # ...
target_link_libraries(your-app Magnum::Magnum) target_link_libraries(your-app PRIVATE Magnum::Magnum)
@endcode @endcode
See @ref building and @ref cmake for more information. See @ref building and @ref cmake for more information.
@ -197,7 +197,7 @@ target:
find_package(Magnum REQUIRED) find_package(Magnum REQUIRED)
# ... # ...
target_link_libraries(your-app Magnum::Magnum) target_link_libraries(your-app PRIVATE Magnum::Magnum)
@endcode @endcode
See @ref building and @ref cmake for more information. See @ref building and @ref cmake for more information.
@ -222,7 +222,7 @@ target:
find_package(Magnum REQUIRED) find_package(Magnum REQUIRED)
# ... # ...
target_link_libraries(your-app Magnum::Magnum) target_link_libraries(your-app PRIVATE Magnum::Magnum)
@endcode @endcode
See @ref building and @ref cmake for more information. 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) find_package(Magnum REQUIRED Audio)
# ... # ...
target_link_libraries(your-app Magnum::Audio) target_link_libraries(your-app PRIVATE Magnum::Audio)
@endcode @endcode
Additional plugins and utilities are built separately. See particular 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) find_package(Magnum REQUIRED DebugTools)
# ... # ...
target_link_libraries(your-app Magnum::DebugTools) target_link_libraries(your-app PRIVATE Magnum::DebugTools)
@endcode @endcode
See @ref building, @ref cmake and @ref debug-tools for more information. See @ref building, @ref cmake and @ref debug-tools for more information.
@ -327,7 +327,7 @@ target:
find_package(Magnum REQUIRED GL) find_package(Magnum REQUIRED GL)
# ... # ...
target_link_libraries(your-app Magnum::GL) target_link_libraries(your-app PRIVATE Magnum::GL)
@endcode @endcode
In case you're building for EGL or OpenGL ES platforms, you also need to copy 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) find_package(Magnum REQUIRED MeshTools)
# ... # ...
target_link_libraries(your-app Magnum::MeshTools) target_link_libraries(your-app PRIVATE Magnum::MeshTools)
@endcode @endcode
Note that functionality depending on @ref GL APIs is available only if Magnum 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) find_package(Magnum REQUIRED Primitives)
# ... # ...
target_link_libraries(your-app Magnum::Primitives) target_link_libraries(your-app PRIVATE Magnum::Primitives)
@endcode @endcode
See @ref building and @ref cmake for more information. 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) find_package(Magnum REQUIRED SceneGraph)
# ... # ...
target_link_libraries(your-app Magnum::SceneGraph) target_link_libraries(your-app PRIVATE Magnum::SceneGraph)
@endcode @endcode
See @ref building, @ref cmake and @ref scenegraph for more information. 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) find_package(Magnum REQUIRED Shaders)
# ... # ...
target_link_libraries(your-app Magnum::Shaders) target_link_libraries(your-app PRIVATE Magnum::Shaders)
@endcode @endcode
See @ref building, @ref cmake and @ref shaders for more information. 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) find_package(Magnum REQUIRED Text)
# ... # ...
target_link_libraries(your-app Magnum::Text) target_link_libraries(your-app PRIVATE Magnum::Text)
@endcode @endcode
Additional plugins and utilities are built separately. See particular `*Font` 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) find_package(Magnum REQUIRED TextureTools)
# ... # ...
target_link_libraries(your-app Magnum::TextureTools) target_link_libraries(your-app PRIVATE Magnum::TextureTools)
@endcode @endcode
Note that functionality depending on @ref GL APIs is available only if Magnum 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) find_package(Magnum REQUIRED Trade)
# ... # ...
target_link_libraries(your-app Magnum::Trade) target_link_libraries(your-app PRIVATE Magnum::Trade)
@endcode @endcode
Additional plugins and utilities are built separately. See particular 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) find_package(Magnum REQUIRED Vk)
# ... # ...
target_link_libraries(your-app Magnum::Vk) target_link_libraries(your-app PRIVATE Magnum::Vk)
@endcode @endcode
See @ref building, @ref cmake and @ref vulkan for more information. See @ref building, @ref cmake and @ref vulkan for more information.

2
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) find_package(Magnum REQUIRED Audio)
# ... # ...
target_link_libraries(your-app Magnum::Audio) target_link_libraries(your-app PRIVATE Magnum::Audio)
@endcode @endcode
See @ref building and @ref cmake for more information. See @ref building and @ref cmake for more information.

2
src/Magnum/GL/Extensions.h

@ -70,7 +70,7 @@ package and link to the `Magnum::GL` target:
find_package(Magnum REQUIRED GL) find_package(Magnum REQUIRED GL)
# ... # ...
target_link_libraries(your-app Magnum::GL) target_link_libraries(your-app PRIVATE Magnum::GL)
@endcode @endcode
See @ref building, @ref cmake and @ref opengl for more information. See @ref building, @ref cmake and @ref opengl for more information.

2
src/Magnum/Platform/AndroidApplication.h

@ -105,7 +105,7 @@ endif()
# ... # ...
if(CORRADE_TARGET_ANDROID) if(CORRADE_TARGET_ANDROID)
target_link_libraries(your-app Magnum::AndroidApplication) target_link_libraries(your-app PRIVATE Magnum::AndroidApplication)
endif() endif()
@endcode @endcode

2
src/Magnum/Platform/EmscriptenApplication.h

@ -122,7 +122,7 @@ endif()
# ... # ...
if(CORRADE_TARGET_EMSCRIPTEN) if(CORRADE_TARGET_EMSCRIPTEN)
target_link_libraries(your-app Magnum::EmscriptenApplication) target_link_libraries(your-app PRIVATE Magnum::EmscriptenApplication)
endif() endif()
@endcode @endcode

2
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) find_package(Magnum REQUIRED GlfwApplication)
# ... # ...
target_link_libraries(your-app Magnum::GlfwApplication) target_link_libraries(your-app PRIVATE Magnum::GlfwApplication)
@endcode @endcode
If no other application is requested, you can also use the generic If no other application is requested, you can also use the generic

2
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) find_package(Magnum REQUIRED GlxApplication)
# ... # ...
target_link_libraries(your-app Magnum::GlxApplication) target_link_libraries(your-app PRIVATE Magnum::GlxApplication)
@endcode @endcode
If no other application is requested, you can also use the generic If no other application is requested, you can also use the generic

2
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) find_package(Magnum REQUIRED Sdl2Application)
# ... # ...
target_link_libraries(your-app Magnum::Sdl2Application) target_link_libraries(your-app PRIVATE Magnum::Sdl2Application)
@endcode @endcode
If no other application is requested, you can also use the generic If no other application is requested, you can also use the generic

2
src/Magnum/Platform/WindowlessCglApplication.h

@ -186,7 +186,7 @@ endif()
# ... # ...
if(CORRADE_TARGET_APPLE) if(CORRADE_TARGET_APPLE)
target_link_libraries(your-app Magnum::WindowlessCglApplication) target_link_libraries(your-app PRIVATE Magnum::WindowlessCglApplication)
endif() endif()
@endcode @endcode

2
src/Magnum/Platform/WindowlessEglApplication.h

@ -351,7 +351,7 @@ component of the `Magnum` package and link to the
find_package(Magnum REQUIRED WindowlessEglApplication) find_package(Magnum REQUIRED WindowlessEglApplication)
# ... # ...
target_link_libraries(your-app Magnum::WindowlessEglApplication) target_link_libraries(your-app PRIVATE Magnum::WindowlessEglApplication)
@endcode @endcode
If no other application is requested, you can also use the generic If no other application is requested, you can also use the generic

2
src/Magnum/Platform/WindowlessGlxApplication.h

@ -283,7 +283,7 @@ endif()
# ... # ...
if(CORRADE_TARGET_UNIX) if(CORRADE_TARGET_UNIX)
target_link_libraries(your-app Magnum::WindowlessGlxApplication) target_link_libraries(your-app PRIVATE Magnum::WindowlessGlxApplication)
endif() endif()
@endcode @endcode

2
src/Magnum/Platform/WindowlessIosApplication.h

@ -181,7 +181,7 @@ endif()
# ... # ...
if(CORRADE_TARGET_IOS) if(CORRADE_TARGET_IOS)
target_link_libraries(your-app Magnum::WindowlessIosApplication) target_link_libraries(your-app PRIVATE Magnum::WindowlessIosApplication)
endif() endif()
@endcode @endcode

2
src/Magnum/Platform/WindowlessWglApplication.h

@ -281,7 +281,7 @@ endif()
# ... # ...
if(CORRADE_TARGET_WINDOWS) if(CORRADE_TARGET_WINDOWS)
target_link_libraries(your-app Magnum::WindowlessWglApplication) target_link_libraries(your-app PRIVATE Magnum::WindowlessWglApplication)
endif() endif()
@endcode @endcode

2
src/Magnum/Platform/WindowlessWindowsEglApplication.h

@ -254,7 +254,7 @@ endif()
# ... # ...
if(CORRADE_TARGET_WINDOWS) if(CORRADE_TARGET_WINDOWS)
target_link_libraries(your-app Magnum::WindowlessWindowsEglApplication) target_link_libraries(your-app PRIVATE Magnum::WindowlessWindowsEglApplication)
endif() endif()
@endcode @endcode

2
src/Magnum/Platform/XEglApplication.h

@ -66,7 +66,7 @@ target:
find_package(Magnum REQUIRED XEglApplication) find_package(Magnum REQUIRED XEglApplication)
# ... # ...
target_link_libraries(your-app Magnum::XEglApplication) target_link_libraries(your-app PRIVATE Magnum::XEglApplication)
@endcode @endcode
If no other application is requested, you can also use the generic If no other application is requested, you can also use the generic

Loading…
Cancel
Save