#-----------------------------------------------------------------------------
-# Macro CREA_ADVANCED_INSTALL_LIBRARY
+# Macro CREA_ADVANCED_INSTALL_LIBRARY_FOR_CMAKE
# Creates and install the cmake files which allow
-# to find a library by the cmake command FIND_PACKAGE.
+# to find the library by the cmake command FIND_PACKAGE.
#
# Inputs :
# --------
#
#-----------------------------------------------------------------------------
-MACRO(CREA_ADVANCED_INSTALL_LIBRARY LIBRARY_NAME)
+MACRO(CREA_ADVANCED_INSTALL_LIBRARY_FOR_CMAKE LIBRARY_NAME)
#---------------------------------------------------------------------------
# Sets the common values to build tree and install tree configs
#---------------------------------------------------------------------------
#-- INSTALL TREE configuration
+
+
SET(CILC_BUILD_TREE_CONFIGURATION FALSE)
- # CREAte work directory to put the configured files because
+ # Create work directory to put the configured files because
# if the user invoked the macro at the root of the build tree the files
# would overwrite those configured for the build tree
SET(CILC_WORK_DIR ${CMAKE_CURRENT_BINARY_DIR}/InstallLibraryForCMake_tmp)
ENDIF(WIN32)
+
# UseLIBRARY_NAME.cmake
CONFIGURE_FILE(
${CREA_CMAKE_DIR}/InstallLibraryForCMake_UseLibrary.cmake.in
-ENDMACRO(CREA_ADVANCED_INSTALL_LIBRARY)
+ENDMACRO(CREA_ADVANCED_INSTALL_LIBRARY_FOR_CMAKE)
#-----------------------------------------------------------------------------
#-----------------------------------------------------------------------------
-MACRO(CREA_INSTALL_LIBRARY LIBRARY_NAME)
+MACRO(CREA_INSTALL_LIBRARY_FOR_CMAKE LIBRARY_NAME)
# Sets the settings to default values
SET(${LIBRARY_NAME}_INSTALL_FOLDER ${LIBRARY_NAME})
SET(${LIBRARY_NAME}_INSTALL_TREE_RELATIVE_LIBRARY_PATHS lib)
# Invoke the advanced macro
- CREA_ADVANCED_INSTALL_LIBRARY(${LIBRARY_NAME})
+ CREA_ADVANCED_INSTALL_LIBRARY_FOR_CMAKE(${LIBRARY_NAME})
-ENDMACRO(CREA_INSTALL_LIBRARY)
+ENDMACRO(CREA_INSTALL_LIBRARY_FOR_CMAKE)
#-----------------------------------------------------------------------------