1 # ---------------------------------------------------------------------
3 # Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image
5 # Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
6 # Previous Authors : Laurent Guigues, Jean-Pierre Roux
7 # CreaTools website : www.creatis.insa-lyon.fr/site/fr/creatools_accueil
9 # This software is governed by the CeCILL-B license under French law and
10 # abiding by the rules of distribution of free software. You can use,
11 # modify and/ or redistribute the software under the terms of the CeCILL-B
12 # license as circulated by CEA, CNRS and INRIA at the following URL
13 # http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
14 # or in the file LICENSE.txt.
16 # As a counterpart to the access to the source code and rights to copy,
17 # modify and redistribute granted by the license, users are provided only
18 # with a limited warranty and the software's author, the holder of the
19 # economic rights, and the successive licensors have only limited
22 # The fact that you are presently reading this means that you have had
23 # knowledge of the CeCILL-B license and that you accept its terms.
24 # ------------------------------------------------------------------------ */
26 # Settings for macro CREA_ADVANCED_INSTALL_LIBRARY_FOR_CMAKE :
28 # USER! : Set the library name (global one)
30 SET(LIBRARY_NAME ___Library_name___here___)
31 SET(LIBRARY_NAME_BASE ${LIBRARY_NAME} )
32 SET(${LIBRARY_NAME}_INSTALL_FOLDER ${LIBRARY_NAME})
34 # USER! : Give the list of your Libraries
36 SET(${LIBRARY_NAME}_LIBRARIES
37 # ___Your_library_one___here___
38 # ___Your_library_two___here___
39 # ___Your_library_tree___here___
43 # USER! : Give the list of directories holding the '.h' and '.txx' to be installed
45 SET(${LIBRARY_NAME}_BUILD_TREE_RELATIVE_INCLUDE_PATHS
46 # lib/___Your_include_directory_one___here___
47 # lib/___Your_include_directory_two___here___
48 # lib/___Your_include_directory_tree___here___
51 # USER! : Hands off, here!
53 IF ( ${PROJECT_BINARY_DIR} STREQUAL ${EXECUTABLE_OUTPUT_PATH} )
54 SET(CILFC_EXECUTABLE_OUTPUT_REL_PATH ".")
55 ELSE ( ${PROJECT_BINARY_DIR} STREQUAL ${EXECUTABLE_OUTPUT_PATH} )
57 CILFC_EXECUTABLE_OUTPUT_REL_PATH
58 ${PROJECT_BINARY_DIR} ${EXECUTABLE_OUTPUT_PATH})
59 ENDIF ( ${PROJECT_BINARY_DIR} STREQUAL ${EXECUTABLE_OUTPUT_PATH} )
61 SET(${LIBRARY_NAME}_INSTALL_TREE_RELATIVE_LIBRARY_PATHS ${CMAKE_CREA_LIB_PATH} )
64 SET(${LIBRARY_NAME}_BUILD_TREE_RELATIVE_LIBRARY_PATHS
65 ${CILFC_EXECUTABLE_OUTPUT_REL_PATH})
67 SET(${LIBRARY_NAME}_BUILD_TREE_RELATIVE_LIBRARY_PATHS
68 ${CILFC_EXECUTABLE_OUTPUT_REL_PATH})
70 SET(${LIBRARY_NAME}_INSTALL_TREE_RELATIVE_INCLUDE_PATHS include/${LIBRARY_NAME})
72 # Invoke the advanced macro
73 CREA_ADVANCED_INSTALL_LIBRARY_FOR_CMAKE(${LIBRARY_NAME})
75 # USER! : Up to you again, now!
77 # USER! : Add a ADD_SUBDIRECTORY command for each one of your libraries
78 # ADD_SUBDIRECTORY(MyLib1)