|
|
|
@ -16,13 +16,17 @@ |
|
|
|
# components, which are: |
|
|
|
# components, which are: |
|
|
|
# |
|
|
|
# |
|
|
|
# Containers - Containers library |
|
|
|
# Containers - Containers library |
|
|
|
# Interconnect - Interconnect library |
|
|
|
|
|
|
|
# Main - Main library |
|
|
|
# Main - Main library |
|
|
|
# PluginManager - PluginManager library |
|
|
|
# PluginManager - PluginManager library |
|
|
|
# TestSuite - TestSuite library |
|
|
|
# TestSuite - TestSuite library |
|
|
|
# Utility - Utility library |
|
|
|
# Utility - Utility library |
|
|
|
# rc - corrade-rc executable |
|
|
|
# rc - corrade-rc executable |
|
|
|
# |
|
|
|
# |
|
|
|
|
|
|
|
# If Corrade is built with CORRADE_BUILD_DEPRECATED enabled, these additional |
|
|
|
|
|
|
|
# libraries are available for backwards compatibility purposes: |
|
|
|
|
|
|
|
# |
|
|
|
|
|
|
|
# Interconnect - Interconnect library |
|
|
|
|
|
|
|
# |
|
|
|
# Example usage with specifying additional components is:: |
|
|
|
# Example usage with specifying additional components is:: |
|
|
|
# |
|
|
|
# |
|
|
|
# find_package(Corrade REQUIRED Utility TestSuite) |
|
|
|
# find_package(Corrade REQUIRED Utility TestSuite) |
|
|
|
@ -376,7 +380,7 @@ set(CORRADE_LIB_SUFFIX_MODULE ${_CORRADE_MODULE_DIR}/CorradeLibSuffix.cmake) |
|
|
|
# Component distinction (listing them explicitly to avoid mistakes with finding |
|
|
|
# Component distinction (listing them explicitly to avoid mistakes with finding |
|
|
|
# unknown components) |
|
|
|
# unknown components) |
|
|
|
set(_CORRADE_LIBRARY_COMPONENTS |
|
|
|
set(_CORRADE_LIBRARY_COMPONENTS |
|
|
|
Containers Interconnect Main PluginManager TestSuite Utility) |
|
|
|
Containers Main PluginManager TestSuite Utility) |
|
|
|
# These libraries are excluded from DLL detection if Corrade is built as shared |
|
|
|
# These libraries are excluded from DLL detection if Corrade is built as shared |
|
|
|
set(_CORRADE_LIBRARY_COMPONENTS_ALWAYS_STATIC |
|
|
|
set(_CORRADE_LIBRARY_COMPONENTS_ALWAYS_STATIC |
|
|
|
Main) |
|
|
|
Main) |
|
|
|
@ -389,15 +393,21 @@ set(_CORRADE_EXECUTABLE_COMPONENTS rc) |
|
|
|
# Currently everything is enabled implicitly. Keep in sync with Corrade's root |
|
|
|
# Currently everything is enabled implicitly. Keep in sync with Corrade's root |
|
|
|
# CMakeLists.txt. |
|
|
|
# CMakeLists.txt. |
|
|
|
set(_CORRADE_IMPLICITLY_ENABLED_COMPONENTS |
|
|
|
set(_CORRADE_IMPLICITLY_ENABLED_COMPONENTS |
|
|
|
Containers Interconnect Main PluginManager TestSuite Utility rc) |
|
|
|
Containers Main PluginManager TestSuite Utility rc) |
|
|
|
|
|
|
|
|
|
|
|
# Inter-component dependencies |
|
|
|
# Inter-component dependencies |
|
|
|
set(_CORRADE_Containers_DEPENDENCIES Utility) |
|
|
|
set(_CORRADE_Containers_DEPENDENCIES Utility) |
|
|
|
set(_CORRADE_Interconnect_DEPENDENCIES Containers Utility) |
|
|
|
|
|
|
|
set(_CORRADE_PluginManager_DEPENDENCIES Containers Utility rc) |
|
|
|
set(_CORRADE_PluginManager_DEPENDENCIES Containers Utility rc) |
|
|
|
set(_CORRADE_TestSuite_DEPENDENCIES Containers Utility Main) # see below |
|
|
|
set(_CORRADE_TestSuite_DEPENDENCIES Containers Utility Main) # see below |
|
|
|
set(_CORRADE_Utility_DEPENDENCIES Containers rc) |
|
|
|
set(_CORRADE_Utility_DEPENDENCIES Containers rc) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Interconnect available only on a deprecated build |
|
|
|
|
|
|
|
if(CORRADE_BUILD_DEPRECATED) |
|
|
|
|
|
|
|
list(APPEND _CORRADE_LIBRARY_COMPONENTS Interconnect) |
|
|
|
|
|
|
|
list(APPEND _CORRADE_IMPLICITLY_ENABLED_COMPONENTS Interconnect) |
|
|
|
|
|
|
|
set(_CORRADE_Interconnect_DEPENDENCIES Containers Utility) |
|
|
|
|
|
|
|
endif() |
|
|
|
|
|
|
|
|
|
|
|
# Ensure that all inter-component dependencies are specified as well |
|
|
|
# Ensure that all inter-component dependencies are specified as well |
|
|
|
foreach(_component ${Corrade_FIND_COMPONENTS}) |
|
|
|
foreach(_component ${Corrade_FIND_COMPONENTS}) |
|
|
|
# Mark the dependencies as required if the component is also required |
|
|
|
# Mark the dependencies as required if the component is also required |
|
|
|
@ -615,6 +625,7 @@ foreach(_component ${Corrade_FIND_COMPONENTS}) |
|
|
|
# No special setup for Containers library |
|
|
|
# No special setup for Containers library |
|
|
|
|
|
|
|
|
|
|
|
# Interconnect library |
|
|
|
# Interconnect library |
|
|
|
|
|
|
|
# TODO: drop once Interconnect is not a thing anymore |
|
|
|
if(_component STREQUAL Interconnect) |
|
|
|
if(_component STREQUAL Interconnect) |
|
|
|
# Disable /OPT:ICF on MSVC, which merges functions with identical |
|
|
|
# Disable /OPT:ICF on MSVC, which merges functions with identical |
|
|
|
# contents and thus breaks signal comparison. Same case is for |
|
|
|
# contents and thus breaks signal comparison. Same case is for |
|
|
|
|