diff --git a/modules/FindCorrade.cmake b/modules/FindCorrade.cmake index fee294752..ef56feca3 100644 --- a/modules/FindCorrade.cmake +++ b/modules/FindCorrade.cmake @@ -4,30 +4,25 @@ # find_package(Corrade [REQUIRED]) # This module tries to find Corrade library and then defines: # CORRADE_FOUND - True if Corrade library is found -# CORRADE_INCLUDE_DIR - Include dir for Corrade -# CORRADE_INTERCONNECT_LIBRARIES - Corrade Interconnect library and -# dependent libraries -# CORRADE_UTILITY_LIBRARIES - Corrade Utility library and -# dependent libraries -# CORRADE_PLUGINMANAGER_LIBRARIES - Corrade PluginManager library and -# dependent libraries -# CORRADE_TESTSUITE_LIBRARIES - Corrade TestSuite library and -# dependent libraries -# CORRADE_RC_EXECUTABLE - Corrade resource compiler executable -# Additionally these variables are defined for internal usage: -# CORRADE_INTERCONNECT_LIBRARY - Corrade Interconnect library (w/o -# dependencies) -# CORRADE_UTILITY_LIBRARY - Corrade Utility library (w/o -# dependencies) -# CORRADE_PLUGINMANAGER_LIBRARY - Corrade Plugin manager library (w/o -# dependencies) -# CORRADE_TESTSUITE_LIBRARY - Corrade TestSuite library (w/o -# dependencies) +# CORRADE_INCLUDE_DIR - Root include dir +# CORRADE_INTERCONNECT_LIBRARIES - Interconnect library and dependent +# libraries +# CORRADE_UTILITY_LIBRARIES - Utility library and dependent +# libraries +# CORRADE_PLUGINMANAGER_LIBRARIES - PluginManager library and dependent +# libraries +# CORRADE_TESTSUITE_LIBRARIES - TestSuite library and dependent +# libraries +# CORRADE_RC_EXECUTABLE - Resource compiler executable # Corrade configures the compiler to use C++11 standard. Additionally you can # use CORRADE_CXX_FLAGS to enable additional pedantic set of warnings and enable # hidden visibility by default. # -# If Corrade library is found, these macros and functions are defined: +# Features of found Corrade library are exposed in these variables: +# CORRADE_GCC46_COMPATIBILITY - Defined if compiled with compatibility +# mode for GCC 4.6 +# +# Corrade provides these macros and functions: # # # Add unit test using Corrade's TestSuite. @@ -36,7 +31,7 @@ # [LIBRARIES libraries...]) # Test name is also executable name. You can also specify libraries to link # with instead of using target_link_libraries(). CORRADE_TESTSUITE_LIBRARIES -# are linked atuomatically to each test. Note that the enable_testing() +# are linked automatically to each test. Note that the enable_testing() # function must be called explicitly. # # @@ -47,7 +42,7 @@ # Depends on corrade-rc, which is part of Corrade utilities. This command # generates resource file with group group_name from given files in current # build directory. Argument name is name under which the resources can be -# explicitly loaded. Variable 'name' contains compiled resource filename, +# explicitly loaded. Variable `name` contains compiled resource filename, # which is then used for compiling library / executable. Example usage: # corrade_add_resource(name group_name file1 ALIAS alias1 file2 file3) # add_executable(app source1 source2 ... ${name}) @@ -58,7 +53,7 @@ # The macro adds preprocessor directive CORRADE_DYNAMIC_PLUGIN. Additional # libraries can be linked in via target_link_libraries(plugin_name ...). If # install_dir is set to CMAKE_CURRENT_BINARY_DIR (e.g. for testing purposes), -# the files are copied directly, without need to run 'make install'. +# the files are copied directly, without need to run `make install`. # # # Add static plugin. @@ -84,6 +79,15 @@ # also contain paths, they will be installed into exact specified path. If an # DLL is not found, fatal error message is printed. # +# +# Additionally these variables are defined for internal usage: +# CORRADE_INTERCONNECT_LIBRARY - Interconnect library (w/o +# dependencies) +# CORRADE_UTILITY_LIBRARY - Utility library (w/o dependencies) +# CORRADE_PLUGINMANAGER_LIBRARY - Plugin manager library (w/o +# dependencies) +# CORRADE_TESTSUITE_LIBRARY - TestSuite library (w/o dependencies) +# # # This file is part of Corrade.