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 # ------------------------------------------------------------------------ */
27 #-----------------------------------------------------------------------------
29 # @LIBRARY_NAME@Config.cmake - CMake configuration file for external projects.
30 # This file was automatically generated by the cmake macro
31 # CREA_INSTALL_LIBRARY_FOR_CMAKE of the package CREA
33 # This file is configured by cmake and used by the
34 # Use@LIBRARY_NAME@.cmake module to load the lib settings
35 # for an external project.
38 SET(CILC_BUILD_TREE_CONFIGURATION @CILC_BUILD_TREE_CONFIGURATION@)
42 SET(GOTO_INSTALL_PREFIX /../../..)
46 # The @LIBRARY_NAME@ include file *RELATIVE* directories.
47 SET(CILC_RELATIVE_INCLUDE_PATHS "@CILC_LIB_RELATIVE_INCLUDE_PATHS@")
48 # Compute the prefix for include and library paths
49 IF(CILC_BUILD_TREE_CONFIGURATION)
51 # the include paths are relative to the source tree *AND* the binary tree
53 SET(CILC_INCLUDE_PATH_PREFIX @PROJECT_SOURCE_DIR@)
54 # Build the *ABSOLUTE* directories
55 FOREACH(path ${CILC_RELATIVE_INCLUDE_PATHS})
56 SET(@LIBRARY_NAME@_INCLUDE_DIRS
57 ${@LIBRARY_NAME@_INCLUDE_DIRS}
58 ${CILC_INCLUDE_PATH_PREFIX}/${path}
60 ENDFOREACH(path ${CILC_RELATIVE_INCLUDE_PATHS})
61 SET(CILC_INCLUDE_PATH_PREFIX @PROJECT_BINARY_DIR@)
62 # Build the *ABSOLUTE* directories
63 FOREACH(path ${CILC_RELATIVE_INCLUDE_PATHS})
64 SET(@LIBRARY_NAME@_INCLUDE_DIRS
65 ${@LIBRARY_NAME@_INCLUDE_DIRS}
66 ${CILC_INCLUDE_PATH_PREFIX}/${path}
68 ENDFOREACH(path ${CILC_RELATIVE_INCLUDE_PATHS})
69 ELSE(CILC_BUILD_TREE_CONFIGURATION)
71 # the include paths are relative to install prefix
72 # On unix , GOTO_INSTALL_PREFIX allows to get back to the
73 # installation prefix from @LIBRARY_NAME@_DIR
74 SET(CILC_INCLUDE_PATH_PREFIX ${@LIBRARY_NAME@_DIR}${GOTO_INSTALL_PREFIX})
75 # Build the *ABSOLUTE* directories
76 FOREACH(path ${CILC_RELATIVE_INCLUDE_PATHS})
77 SET(@LIBRARY_NAME@_INCLUDE_DIRS
78 ${@LIBRARY_NAME@_INCLUDE_DIRS}
79 ${CILC_INCLUDE_PATH_PREFIX}/${path}
81 ENDFOREACH(path ${CILC_RELATIVE_INCLUDE_PATHS})
82 ENDIF(CILC_BUILD_TREE_CONFIGURATION)
86 # Compute the prefix for library paths
87 IF(CILC_BUILD_TREE_CONFIGURATION)
89 # the library paths are relative to the binary tree
90 SET(CILC_LIBRARY_PATH_PREFIX @PROJECT_BINARY_DIR@)
91 ELSE(CILC_BUILD_TREE_CONFIGURATION)
93 # the library paths are relative to install prefix
94 SET(CILC_LIBRARY_PATH_PREFIX ${@LIBRARY_NAME@_DIR}${GOTO_INSTALL_PREFIX})
95 ENDIF(CILC_BUILD_TREE_CONFIGURATION)
96 # The @LIBRARY_NAME@ library file *RELATIVE* directories.
97 SET(CILC_RELATIVE_LIBRARY_PATHS "@CILC_LIB_RELATIVE_LIBRARY_PATHS@")
98 # Build the *ABSOLUTE* directories
99 FOREACH(path ${CILC_RELATIVE_LIBRARY_PATHS})
100 SET(@LIBRARY_NAME@_LIBRARY_DIRS
101 ${@LIBRARY_NAME@_LIBRARY_DIRS}
102 ${CILC_LIBRARY_PATH_PREFIX}/${path}
104 ENDFOREACH(path ${CILC_RELATIVE_LIBRARY_PATHS})
106 # Set the "prefix path"
107 SET(@LIBRARY_NAME@_INSTALL_PREFIX ${CILC_LIBRARY_PATH_PREFIX})
109 # The C and C++ flags added by @LIBRARY_NAME@ to the cmake-configured flags.
110 SET(@LIBRARY_NAME@_REQUIRED_C_FLAGS "@CILC_LIB_REQUIRED_C_FLAGS@")
111 SET(@LIBRARY_NAME@_REQUIRED_CXX_FLAGS "@CILC_LIB_REQUIRED_CXX_FLAGS@")
112 SET(@LIBRARY_NAME@_REQUIRED_LINK_FLAGS "@CILC_LIB_REQUIRED_LINK_FLAGS@")
114 # The @LIBRARY_NAME@ version
115 SET(@LIBRARY_NAME@_MAJOR_VERSION @CILC_LIB_MAJOR_VERSION@)
116 SET(@LIBRARY_NAME@_MINOR_VERSION @CILC_LIB_MINOR_VERSION@)
117 SET(@LIBRARY_NAME@_BUILD_VERSION @CILC_LIB_BUILD_VERSION@)
118 SET(@LIBRARY_NAME@_VERSION @CILC_LIB_VERSION@)
120 # The location of the Use@LIBRARY_NAME@.cmake file.
121 SET(@LIBRARY_NAME@_USE_FILE "${@LIBRARY_NAME@_DIR}/Use@LIBRARY_NAME@.cmake")
123 # The build settings file.
124 SET(@LIBRARY_NAME@_BUILD_SETTINGS_FILE
125 "${@LIBRARY_NAME@_DIR}/@LIBRARY_NAME@BuildSettings.cmake")
127 # A list of all libraries for @LIBRARY_NAME@. Those listed here should
128 # automatically pull in their dependencies.
129 SET(@LIBRARY_NAME@_LIBRARIES @CILC_LIB_LIBRARIES@)
132 IF(CREA_VERBOSE_CMAKE)
133 MESSAGE(STATUS "=======================================")
134 MESSAGE(STATUS "Looking for @LIBRARY_NAME@... found:")
135 MESSAGE(STATUS "* @LIBRARY_NAME@_DIR = ${@LIBRARY_NAME@_DIR}")
136 MESSAGE(STATUS "* @LIBRARY_NAME@_VERSION = ${@LIBRARY_NAME@_VERSION}")
137 MESSAGE(STATUS "* @LIBRARY_NAME@_USE_FILE = ${@LIBRARY_NAME@_USE_FILE}")
139 MESSAGE(STATUS "* @LIBRARY_NAME@_INCLUDE_DIRS = ${@LIBRARY_NAME@_INCLUDE_DIRS}")
140 MESSAGE(STATUS "* @LIBRARY_NAME@_LIBRARY_DIRS = ${@LIBRARY_NAME@_LIBRARY_DIRS}")
141 MESSAGE(STATUS "* @LIBRARY_NAME@_LIBRARIES = ${@LIBRARY_NAME@_LIBRARIES}")
142 ENDIF(CREA_VERBOSE_CMAKE)
144 # Does the library has an additional config file (user provided) ?
145 SET(@LIBRARY_NAME@_HAS_ADDITIONAL_CONFIG_FILE @CILC_LIB_HAS_ADDITIONAL_CONFIG_FILE@)
147 IF (@LIBRARY_NAME@_HAS_ADDITIONAL_CONFIG_FILE)
148 IF(CREA_VERBOSE_CMAKE)
149 MESSAGE(STATUS "Reading @LIBRARY_NAME@ additional configuration file")
150 ENDIF(CREA_VERBOSE_CMAKE)
152 INCLUDE(${@LIBRARY_NAME@_DIR}/Additional@LIBRARY_NAME@Config.cmake)
153 ENDIF (@LIBRARY_NAME@_HAS_ADDITIONAL_CONFIG_FILE)