|
|
|
@ -73,7 +73,9 @@ |
|
|
|
# CORRADE_TARGET_UNIX - Defined if compiled for some Unix flavor |
|
|
|
# CORRADE_TARGET_UNIX - Defined if compiled for some Unix flavor |
|
|
|
# (Linux, BSD, OS X) |
|
|
|
# (Linux, BSD, OS X) |
|
|
|
# CORRADE_TARGET_APPLE - Defined if compiled for Apple platforms |
|
|
|
# CORRADE_TARGET_APPLE - Defined if compiled for Apple platforms |
|
|
|
# CORRADE_TARGET_IOS - Defined if compiled for iOS |
|
|
|
# CORRADE_TARGET_IOS - Defined if compiled for iOS (device or |
|
|
|
|
|
|
|
# simulator) |
|
|
|
|
|
|
|
# CORRADE_TARGET_IOS_SIMULATOR - Defined if compiled for iOS Simulator |
|
|
|
# CORRADE_TARGET_WINDOWS - Defined if compiled for Windows |
|
|
|
# CORRADE_TARGET_WINDOWS - Defined if compiled for Windows |
|
|
|
# CORRADE_TARGET_WINDOWS_RT - Defined if compiled for Windows RT |
|
|
|
# CORRADE_TARGET_WINDOWS_RT - Defined if compiled for Windows RT |
|
|
|
# CORRADE_TARGET_NACL - Defined if compiled for Google Chrome Native |
|
|
|
# CORRADE_TARGET_NACL - Defined if compiled for Google Chrome Native |
|
|
|
@ -97,6 +99,7 @@ |
|
|
|
# CORRADE_USE_MODULE - Path to UseCorrade.cmake module (included |
|
|
|
# CORRADE_USE_MODULE - Path to UseCorrade.cmake module (included |
|
|
|
# automatically) |
|
|
|
# automatically) |
|
|
|
# CORRADE_TESTSUITE_XCTEST_RUNNER - Path to XCTestRunner.mm.in file |
|
|
|
# CORRADE_TESTSUITE_XCTEST_RUNNER - Path to XCTestRunner.mm.in file |
|
|
|
|
|
|
|
# CORRADE_TESTSUITE_ADB_RUNNER - Path to AdbRunner.sh file |
|
|
|
# CORRADE_PEDANTIC_COMPILER_OPTIONS - List of pedantic compiler options used |
|
|
|
# CORRADE_PEDANTIC_COMPILER_OPTIONS - List of pedantic compiler options used |
|
|
|
# for targets with :prop_tgt:`CORRADE_USE_PEDANTIC_FLAGS` enabled |
|
|
|
# for targets with :prop_tgt:`CORRADE_USE_PEDANTIC_FLAGS` enabled |
|
|
|
# CORRADE_PEDANTIC_COMPILER_DEFINITIONS - List of pedantic compiler |
|
|
|
# CORRADE_PEDANTIC_COMPILER_DEFINITIONS - List of pedantic compiler |
|
|
|
@ -120,13 +123,21 @@ |
|
|
|
# |
|
|
|
# |
|
|
|
# corrade_add_test(<test name> |
|
|
|
# corrade_add_test(<test name> |
|
|
|
# <sources>... |
|
|
|
# <sources>... |
|
|
|
# [LIBRARIES <libraries>...]) |
|
|
|
# [LIBRARIES <libraries>...] |
|
|
|
|
|
|
|
# [FILES <files>...]) |
|
|
|
# |
|
|
|
# |
|
|
|
# Test name is also executable name. You can also specify libraries to link |
|
|
|
# Test name is also executable name. You can also specify libraries to link |
|
|
|
# with instead of using :command:`target_link_libraries()`. |
|
|
|
# with instead of using :command:`target_link_libraries()`. |
|
|
|
# ``Corrade::TestSuite`` target is linked automatically to each test. Note |
|
|
|
# ``Corrade::TestSuite`` target is linked automatically to each test. Note |
|
|
|
# that the :command:`enable_testing()` function must be called explicitly. |
|
|
|
# that the :command:`enable_testing()` function must be called explicitly. |
|
|
|
# |
|
|
|
# |
|
|
|
|
|
|
|
# You can list files needed by the test in the `FILES` section. The filenames |
|
|
|
|
|
|
|
# are treated relatively to `CMAKE_CURRENT_SOURCE_DIR`. On desktop platforms |
|
|
|
|
|
|
|
# the files are added to the :prop_test:`REQUIRED_FILES` target property. On |
|
|
|
|
|
|
|
# Emscripten they are bundled to the executable and available in the virtual |
|
|
|
|
|
|
|
# filesystem root. On Android they are copied along the executable to the |
|
|
|
|
|
|
|
# target. |
|
|
|
|
|
|
|
# |
|
|
|
# Unless :variable:`CORRADE_TESTSUITE_TARGET_XCTEST` is set, test cases on iOS |
|
|
|
# Unless :variable:`CORRADE_TESTSUITE_TARGET_XCTEST` is set, test cases on iOS |
|
|
|
# targets are created as bundles with bundle identifier set to CMake project |
|
|
|
# targets are created as bundles with bundle identifier set to CMake project |
|
|
|
# name by default. Use the cache variable :variable:`CORRADE_TESTSUITE_BUNDLE_IDENTIFIER_PREFIX` |
|
|
|
# name by default. Use the cache variable :variable:`CORRADE_TESTSUITE_BUNDLE_IDENTIFIER_PREFIX` |
|
|
|
@ -152,37 +163,60 @@ |
|
|
|
# Add dynamic plugin:: |
|
|
|
# Add dynamic plugin:: |
|
|
|
# |
|
|
|
# |
|
|
|
# corrade_add_plugin(<plugin name> |
|
|
|
# corrade_add_plugin(<plugin name> |
|
|
|
# <debug install dir> <release install dir> |
|
|
|
# "<debug binary install dir>;<debug library install dir>" |
|
|
|
|
|
|
|
# "<release binary install dir>;<release library install dir>" |
|
|
|
# <metadata file> |
|
|
|
# <metadata file> |
|
|
|
# <sources>...) |
|
|
|
# <sources>...) |
|
|
|
# |
|
|
|
# |
|
|
|
# The macro adds preprocessor directive ``CORRADE_DYNAMIC_PLUGIN``. Additional |
|
|
|
# The macro adds preprocessor directive ``CORRADE_DYNAMIC_PLUGIN``. Additional |
|
|
|
# libraries can be linked in via :command:`target_link_libraries(plugin_name ...) <target_link_libraries>`. |
|
|
|
# libraries can be linked in via :command:`target_link_libraries(plugin_name ...) <target_link_libraries>`. |
|
|
|
# If ``<debug install dir>`` is set to :variable:`CMAKE_CURRENT_BINARY_DIR` |
|
|
|
# On DLL platforms, the plugin DLLs and metadata files are put into |
|
|
|
# (e.g. for testing purposes), the files are copied directly, without the need |
|
|
|
# ``<debug binary install dir>``/``<release binary install dir>`` and the |
|
|
|
# to perform install step. Note that the files are actually put into |
|
|
|
# ``*.lib`` files into ``<debug library install dir>``/``<release library install dir>``. |
|
|
|
# configuration-based subdirectory, i.e. ``${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}``. |
|
|
|
# On non-DLL platforms everything is put into ``<debug library install dir>``/ |
|
|
|
# See documentation of :variable:`CMAKE_CFG_INTDIR` variable for more |
|
|
|
# ``<release library install dir>``. |
|
|
|
# information. |
|
|
|
# |
|
|
|
|
|
|
|
# corrade_add_plugin(<plugin name> |
|
|
|
|
|
|
|
# <debug install dir> |
|
|
|
|
|
|
|
# <release install dir> |
|
|
|
|
|
|
|
# <metadata file> |
|
|
|
|
|
|
|
# <sources>...) |
|
|
|
|
|
|
|
# |
|
|
|
|
|
|
|
# Unline the above version this puts everything into ``<debug install dir>`` on |
|
|
|
|
|
|
|
# both DLL and non-DLL platforms. If ``<debug install dir>`` is set to |
|
|
|
|
|
|
|
# :variable:`CMAKE_CURRENT_BINARY_DIR` (e.g. for testing purposes), the files |
|
|
|
|
|
|
|
# are copied directly, without the need to perform install step. Note that the |
|
|
|
|
|
|
|
# files are actually put into configuration-based subdirectory, i.e. |
|
|
|
|
|
|
|
# ``${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}``. See documentation of |
|
|
|
|
|
|
|
# :variable:`CMAKE_CFG_INTDIR` variable for more information. |
|
|
|
# |
|
|
|
# |
|
|
|
# .. command:: corrade_add_static_plugin |
|
|
|
# .. command:: corrade_add_static_plugin |
|
|
|
# |
|
|
|
# |
|
|
|
# Add static plugin:: |
|
|
|
# Add static plugin:: |
|
|
|
# |
|
|
|
# |
|
|
|
# corrade_add_static_plugin(<plugin name> |
|
|
|
# corrade_add_static_plugin(<plugin name> |
|
|
|
# <install dir> |
|
|
|
# "<binary install dir>;<library install dir>" |
|
|
|
# <metadata file> |
|
|
|
# <metadata file> |
|
|
|
# <sources>...) |
|
|
|
# <sources>...) |
|
|
|
# |
|
|
|
# |
|
|
|
# The macro adds preprocessor directive ``CORRADE_STATIC_PLUGIN``. Additional |
|
|
|
# The macro adds preprocessor directive ``CORRADE_STATIC_PLUGIN``. Additional |
|
|
|
# libraries can be linked in via :command:`target_link_libraries(plugin_name ...) <target_link_libraries>`. |
|
|
|
# libraries can be linked in via :command:`target_link_libraries(plugin_name ...) <target_link_libraries>`. |
|
|
|
|
|
|
|
# The ``<binary install dir>`` is ignored and included just for compatibility |
|
|
|
|
|
|
|
# with the :command:`corrade_add_plugin` command, everything is installed into |
|
|
|
|
|
|
|
# ``<library install dir>``. Note that plugins built in debug configuration |
|
|
|
|
|
|
|
# (e.g. with :variable:`CMAKE_BUILD_TYPE` set to ``Debug``) have ``"-d"`` |
|
|
|
|
|
|
|
# suffix to make it possible to have both debug and release plugins installed |
|
|
|
|
|
|
|
# alongside each other. |
|
|
|
|
|
|
|
# |
|
|
|
|
|
|
|
# corrade_add_static_plugin(<plugin name> |
|
|
|
|
|
|
|
# <install dir> |
|
|
|
|
|
|
|
# <metadata file> |
|
|
|
|
|
|
|
# <sources>...) |
|
|
|
|
|
|
|
# |
|
|
|
|
|
|
|
# Equivalent to the above with ``<library install dir>`` set to ``<install dir>``. |
|
|
|
# If ``<install dir>`` is set to :variable:`CMAKE_CURRENT_BINARY_DIR` (e.g. for |
|
|
|
# If ``<install dir>`` is set to :variable:`CMAKE_CURRENT_BINARY_DIR` (e.g. for |
|
|
|
# testing purposes), no installation rules are added. |
|
|
|
# testing purposes), no installation rules are added. |
|
|
|
# |
|
|
|
# |
|
|
|
# Note that plugins built in debug configuration (e.g. with :variable:`CMAKE_BUILD_TYPE` |
|
|
|
|
|
|
|
# set to ``Debug``) have ``"-d"`` suffix to make it possible to have both debug |
|
|
|
|
|
|
|
# and release plugins installed alongside each other. |
|
|
|
|
|
|
|
# |
|
|
|
|
|
|
|
# .. command:: corrade_find_dlls_for_libs |
|
|
|
# .. command:: corrade_find_dlls_for_libs |
|
|
|
# |
|
|
|
# |
|
|
|
# Find corresponding DLLs for library files:: |
|
|
|
# Find corresponding DLLs for library files:: |
|
|
|
@ -248,6 +282,7 @@ set(_corradeFlags |
|
|
|
TARGET_UNIX |
|
|
|
TARGET_UNIX |
|
|
|
TARGET_APPLE |
|
|
|
TARGET_APPLE |
|
|
|
TARGET_IOS |
|
|
|
TARGET_IOS |
|
|
|
|
|
|
|
TARGET_IOS_SIMULATOR |
|
|
|
TARGET_WINDOWS |
|
|
|
TARGET_WINDOWS |
|
|
|
TARGET_WINDOWS_RT |
|
|
|
TARGET_WINDOWS_RT |
|
|
|
TARGET_NACL |
|
|
|
TARGET_NACL |
|
|
|
@ -271,6 +306,13 @@ if(CORRADE_TESTSUITE_TARGET_XCTEST) |
|
|
|
set(CORRADE_TESTSUITE_XCTEST_RUNNER_NEEDED CORRADE_TESTSUITE_XCTEST_RUNNER) |
|
|
|
set(CORRADE_TESTSUITE_XCTEST_RUNNER_NEEDED CORRADE_TESTSUITE_XCTEST_RUNNER) |
|
|
|
endif() |
|
|
|
endif() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# ADB runner file |
|
|
|
|
|
|
|
if(CORRADE_TARGET_ANDROID) |
|
|
|
|
|
|
|
find_file(CORRADE_TESTSUITE_ADB_RUNNER AdbRunner.sh |
|
|
|
|
|
|
|
PATH_SUFFIXES share/corrade/TestSuite) |
|
|
|
|
|
|
|
set(CORRADE_TESTSUITE_ADB_RUNNER_NEEDED CORRADE_TESTSUITE_ADB_RUNNER) |
|
|
|
|
|
|
|
endif() |
|
|
|
|
|
|
|
|
|
|
|
# CMake module dir |
|
|
|
# CMake module dir |
|
|
|
find_path(_CORRADE_MODULE_DIR |
|
|
|
find_path(_CORRADE_MODULE_DIR |
|
|
|
NAMES UseCorrade.cmake CorradeLibSuffix.cmake |
|
|
|
NAMES UseCorrade.cmake CorradeLibSuffix.cmake |
|
|
|
@ -459,6 +501,7 @@ find_package_handle_standard_args(Corrade REQUIRED_VARS |
|
|
|
_CORRADE_MODULE_DIR |
|
|
|
_CORRADE_MODULE_DIR |
|
|
|
_CORRADE_CONFIGURE_FILE |
|
|
|
_CORRADE_CONFIGURE_FILE |
|
|
|
${CORRADE_TESTSUITE_XCTEST_RUNNER_NEEDED} |
|
|
|
${CORRADE_TESTSUITE_XCTEST_RUNNER_NEEDED} |
|
|
|
|
|
|
|
${CORRADE_TESTSUITE_ADB_RUNNER_NEEDED} |
|
|
|
HANDLE_COMPONENTS) |
|
|
|
HANDLE_COMPONENTS) |
|
|
|
|
|
|
|
|
|
|
|
# Finalize the finding process |
|
|
|
# Finalize the finding process |
|
|
|
|