]> Creatis software - creaContours.git/blob - lib/CMakeLists.txt
Feature #1772 Add licence terms for all files.
[creaContours.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
27
28
29    # Sets the settings for macro CREA_ADVANCED_INSTALL_LIBRARY_FOR_CMAKE
30   SET(LIBRARY_NAME creaContours)
31   SET(LIBRARY_NAME_BASE ${LIBRARY_NAME} )
32
33   SET(${LIBRARY_NAME}_INSTALL_FOLDER ${LIBRARY_NAME})
34   
35 #EED 01Avril2009
36 #  SET(${LIBRARY_NAME}_LIBRARIES ${LIBRARY_NAME} )
37   SET(${LIBRARY_NAME}_LIBRARIES Interface_ManagerContour_NDimensions_lib Interface_Icons_NDimensions_lib kernel_ManagerContour_NDimensions_lib )
38     
39 #  FILE(RELATIVE_PATH 
40 #    ${LIBRARY_NAME}_BUILD_TREE_RELATIVE_INCLUDE_PATHS 
41 #    ${PROJECT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}
42 #    )
43         
44 SET(${LIBRARY_NAME}_BUILD_TREE_RELATIVE_INCLUDE_PATHS
45     lib/Interface_ManagerContour_NDimensions
46     lib/Interface_Icons_NDimensions
47     lib/kernel_ManagerContour_NDimensions
48 )
49         
50         
51   IF ( ${PROJECT_BINARY_DIR} STREQUAL ${EXECUTABLE_OUTPUT_PATH} )
52     SET(CILFC_EXECUTABLE_OUTPUT_REL_PATH ".")
53   ELSE ( ${PROJECT_BINARY_DIR} STREQUAL ${EXECUTABLE_OUTPUT_PATH} )
54     FILE(RELATIVE_PATH 
55       CILFC_EXECUTABLE_OUTPUT_REL_PATH
56       ${PROJECT_BINARY_DIR} ${EXECUTABLE_OUTPUT_PATH})
57   ENDIF ( ${PROJECT_BINARY_DIR} STREQUAL ${EXECUTABLE_OUTPUT_PATH} )
58
59
60   SET(${LIBRARY_NAME}_INSTALL_TREE_RELATIVE_LIBRARY_PATHS ${CMAKE_CREA_LIB_PATH} )
61
62   IF(UNIX)
63     ADD_DEFINITIONS(-fPIC)
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 #  SET(${LIBRARY_NAME}_HAS_ADDITIONAL_CONFIG_FILE TRUE)
73 #SET(${LIBRARY_NAME}_ADDITIONAL_CONFIG_FILE 
74 #  ${PROJECT_SOURCE_DIR}/src/AdditionalcreaImageIOConfig.cmake.in)
75 #SET(${LIBRARY_NAME}_ADDITIONAL_USE_FILE 
76 #  ${PROJECT_SOURCE_DIR}/src/AdditionalUsecreaImageIO.cmake.in)
77
78   # Invoke the advanced macro
79   CREA_ADVANCED_INSTALL_LIBRARY_FOR_CMAKE(${LIBRARY_NAME})
80
81 ADD_SUBDIRECTORY(Interface_ManagerContour_NDimensions)
82 ADD_SUBDIRECTORY(Interface_Icons_NDimensions)
83 ADD_SUBDIRECTORY(kernel_ManagerContour_NDimensions)
84 ADD_SUBDIRECTORY(doxygen)
85  
86