]> Creatis software - crea.git/blobdiff - cmake/CREAMacro_InstallLibraryForCMake.cmake
'local install' issues
[crea.git] / cmake / CREAMacro_InstallLibraryForCMake.cmake
index 1cedd6b72dd1d2e53c411561dab811e495f21da8..59966796b1af73539e5d6dae78482b518d65c397 100644 (file)
@@ -44,7 +44,7 @@
 # * ${LIBRARY_NAME}_INSTALL_TREE_RELATIVE_INCLUDE_PATHS
 #    The list of include paths 
 #    when someone uses an *INSTALLED* version of ${LIBRARY_NAME} 
-#    The paths *MUST BE RELATIVE* to INSTALL_PREFIX
+#    The paths *MUST BE RELATIVE* to CMAKE_INSTALL_PREFIX
 #  #    A typical example is "include/${LIBRARY_NAME}"
 # * ${LIBRARY_NAME}_INSTALL_TREE_RELATIVE_LIBRARY_PATHS
 #    Like the previous var but for library paths.
@@ -61,8 +61,8 @@
 # * ${LIBRARY_NAME}_MINOR_VERSION
 # * ${LIBRARY_NAME}_BUILD_VERSION
 # * ${LIBRARY_NAME}_INSTALL_FOLDER : if set then install the generated files 
-#   in INSTALL_PREFIX/lib/${LIBRARY_NAME}_INSTALL_FOLDER 
-#   instead of INSTALL_PREFIX/lib/${LIBRARY_NAME}
+#   in CMAKE_INSTALL_PREFIX/lib/${LIBRARY_NAME}_INSTALL_FOLDER 
+#   instead of CMAKE_INSTALL_PREFIX/lib/${LIBRARY_NAME}
 #
 # 
 # To provide a user defined 
@@ -86,7 +86,7 @@
 #  AdditionalUse${LIBRARY_NAME}.cmake
 # 
 # At install-time, the same files are installed 
-# in INSTALL_PREFIX/lib/${LIBRARY_NAME}_INSTALL_FOLDER 
+# in CMAKE_INSTALL_PREFIX/lib/${LIBRARY_NAME}_INSTALL_FOLDER 
 # and the file :
 #  Find${LIBRARY_NAME}.cmake
 # is installed in ${CMAKE_ROOT}/Modules/
@@ -255,6 +255,14 @@ MACRO(CREA_ADVANCED_INSTALL_LIBRARY_FOR_CMAKE LIBRARY_NAME)
 #    FILES ${CILC_WORK_DIR}/Find${LIBRARY_NAME}.cmake
 #    DESTINATION ${CMAKE_ROOT}/Modules 
 #    )
+
+# JPR 04 Mars 2011
+  INSTALL( 
+    FILES ${CILC_WORK_DIR}/Find${LIBRARY_NAME}.cmake
+    DESTINATION ${CMAKE_INSTALL_PREFIX}/share/cmake/Modules
+    )
+    
   #---------------------------------------------------------------------------