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 # ------------------------------------------------------------------------ */
29 # Sets the settings for macro CREA_ADVANCED_INSTALL_LIBRARY_FOR_CMAKE
30 SET(LIBRARY_NAME creaContours)
31 SET(LIBRARY_NAME_BASE ${LIBRARY_NAME} )
33 SET(${LIBRARY_NAME}_INSTALL_FOLDER ${LIBRARY_NAME})
36 # SET(${LIBRARY_NAME}_LIBRARIES ${LIBRARY_NAME} )
37 SET(${LIBRARY_NAME}_LIBRARIES Interface_ManagerContour_NDimensions_lib Interface_Icons_NDimensions_lib kernel_ManagerContour_NDimensions_lib )
40 # ${LIBRARY_NAME}_BUILD_TREE_RELATIVE_INCLUDE_PATHS
41 # ${PROJECT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}
44 SET(${LIBRARY_NAME}_BUILD_TREE_RELATIVE_INCLUDE_PATHS
45 lib/Interface_ManagerContour_NDimensions
46 lib/Interface_Icons_NDimensions
47 lib/kernel_ManagerContour_NDimensions
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} )
55 CILFC_EXECUTABLE_OUTPUT_REL_PATH
56 ${PROJECT_BINARY_DIR} ${EXECUTABLE_OUTPUT_PATH})
57 ENDIF ( ${PROJECT_BINARY_DIR} STREQUAL ${EXECUTABLE_OUTPUT_PATH} )
60 SET(${LIBRARY_NAME}_INSTALL_TREE_RELATIVE_LIBRARY_PATHS ${CMAKE_CREA_LIB_PATH} )
63 ADD_DEFINITIONS(-fPIC)
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 # 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)
78 # Invoke the advanced macro
79 CREA_ADVANCED_INSTALL_LIBRARY_FOR_CMAKE(${LIBRARY_NAME})
81 ADD_SUBDIRECTORY(Interface_ManagerContour_NDimensions)
82 ADD_SUBDIRECTORY(Interface_Icons_NDimensions)
83 ADD_SUBDIRECTORY(kernel_ManagerContour_NDimensions)
84 ADD_SUBDIRECTORY(doxygen)