]> Creatis software - creaMiniTools.git/blob - lib/CMakeLists.txt
Feature #1769 Add licence terms for all files.
[creaMiniTools.git] / lib / CMakeLists.txt
1 # ---------------------------------------------------------------------
2 #
3 # Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image
4 #                        pour la Sant�)
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
8 #
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.
15 #
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
20 #  liability.
21 #
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 # ------------------------------------------------------------------------ */
25
26 # Settings for macro CREA_ADVANCED_INSTALL_LIBRARY_FOR_CMAKE :
27
28 # USER! : Set the library name (global one)
29
30   SET(LIBRARY_NAME ___Library_name___here___)
31   SET(LIBRARY_NAME_BASE ${LIBRARY_NAME} )
32   SET(${LIBRARY_NAME}_INSTALL_FOLDER ${LIBRARY_NAME})
33   
34 # USER! : Give the list of your Libraries 
35  
36 SET(${LIBRARY_NAME}_LIBRARIES 
37   # ___Your_library_one___here___
38   # ___Your_library_two___here___ 
39   # ___Your_library_tree___here___     
40
41    )
42
43 # USER! : Give the list of directories holding the '.h' and '.txx' to be installed
44
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___    
49  )
50
51 # USER! : Hands off, here!
52
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} )
56     FILE(RELATIVE_PATH 
57       CILFC_EXECUTABLE_OUTPUT_REL_PATH
58       ${PROJECT_BINARY_DIR} ${EXECUTABLE_OUTPUT_PATH})
59   ENDIF ( ${PROJECT_BINARY_DIR} STREQUAL ${EXECUTABLE_OUTPUT_PATH} )
60
61   SET(${LIBRARY_NAME}_INSTALL_TREE_RELATIVE_LIBRARY_PATHS ${CMAKE_CREA_LIB_PATH} )
62
63   IF(UNIX)
64     SET(${LIBRARY_NAME}_BUILD_TREE_RELATIVE_LIBRARY_PATHS 
65       ${CILFC_EXECUTABLE_OUTPUT_REL_PATH})
66   ELSE(UNIX)
67     SET(${LIBRARY_NAME}_BUILD_TREE_RELATIVE_LIBRARY_PATHS 
68       ${CILFC_EXECUTABLE_OUTPUT_REL_PATH})
69   ENDIF(UNIX)
70   SET(${LIBRARY_NAME}_INSTALL_TREE_RELATIVE_INCLUDE_PATHS include/${LIBRARY_NAME})
71
72   # Invoke the advanced macro
73   CREA_ADVANCED_INSTALL_LIBRARY_FOR_CMAKE(${LIBRARY_NAME})
74  
75 # USER! : Up to you again, now!
76        
77 # USER! : Add a ADD_SUBDIRECTORY command for each one of your libraries
78 # ADD_SUBDIRECTORY(MyLib1)
79