]> Creatis software - crea.git/blobdiff - cmake/CREAMacro_InstallLibraryForCMake.cmake
* creaNewProject template_lib updated
[crea.git] / cmake / CREAMacro_InstallLibraryForCMake.cmake
similarity index 96%
rename from cmake/CREAMacro_InstallLibrary.cmake
rename to cmake/CREAMacro_InstallLibraryForCMake.cmake
index e49eb76929b5363b74dab1a34006b2e5a3232b8a..4e08f05b476d98e6aa2dd5e5b9af6ecf4217794b 100644 (file)
@@ -1,7 +1,7 @@
 #-----------------------------------------------------------------------------
-# 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 :
 # --------
@@ -94,7 +94,7 @@
 #
 #-----------------------------------------------------------------------------
 
-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
@@ -156,8 +156,10 @@ MACRO(CREA_ADVANCED_INSTALL_LIBRARY LIBRARY_NAME)
 
   #---------------------------------------------------------------------------
   #-- 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)
@@ -178,6 +180,7 @@ MACRO(CREA_ADVANCED_INSTALL_LIBRARY LIBRARY_NAME)
   ENDIF(WIN32)
 
 
+
   # UseLIBRARY_NAME.cmake 
   CONFIGURE_FILE(
     ${CREA_CMAKE_DIR}/InstallLibraryForCMake_UseLibrary.cmake.in
@@ -250,14 +253,14 @@ MACRO(CREA_ADVANCED_INSTALL_LIBRARY LIBRARY_NAME)
 
 
 
-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})
@@ -280,8 +283,8 @@ MACRO(CREA_INSTALL_LIBRARY 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)
 #-----------------------------------------------------------------------------