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 # This is an implementation detail for using @LIBRARY_NAME@ with the
28 # Find@LIBRARY_NAME@.cmake module. Do not include directly by name.
29 # This should be included only when Find@LIBRARY_NAME@.cmake sets
30 # the @LIBRARY_NAME@_USE_FILE variable to point here.
32 IF(CREA_VERBOSE_CMAKE)
33 MESSAGE(STATUS "Using @LIBRARY_NAME@")
34 ENDIF(CREA_VERBOSE_CMAKE)
36 # Load the compiler settings used for @LIBRARY_NAME@.
37 IF(@LIBRARY_NAME@_BUILD_SETTINGS_FILE)
38 INCLUDE(CMakeImportBuildSettings)
39 CMAKE_IMPORT_BUILD_SETTINGS(${@LIBRARY_NAME@_BUILD_SETTINGS_FILE})
40 ENDIF(@LIBRARY_NAME@_BUILD_SETTINGS_FILE)
42 # Add compiler flags needed to use @LIBRARY_NAME@.
43 SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${@LIBRARY_NAME@_REQUIRED_C_FLAGS}")
44 SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${@LIBRARY_NAME@_REQUIRED_CXX_FLAGS}")
45 SET(CMAKE_LINK_FLAGS "${CMAKE_LINK_FLAGS} ${@LIBRARY_NAME@_REQUIRED_LINK_FLAGS}")
47 # Add include directories needed to use @LIBRARY_NAME@.
48 INCLUDE_DIRECTORIES(${@LIBRARY_NAME@_INCLUDE_DIRS})
50 # Add link directories needed to use @LIBRARY_NAME@.
51 LINK_DIRECTORIES(${@LIBRARY_NAME@_LIBRARY_DIRS})
54 # Already done in bbtkConfigure.h
55 #ADD_DEFINITIONS( -D@LIBRARY_NAME@_VERSION="\"${@LIBRARY_NAME@_VERSION}\"" )
58 IF (@LIBRARY_NAME@_HAS_ADDITIONAL_CONFIG_FILE)
60 INCLUDE(${@LIBRARY_NAME@_DIR}/AdditionalUse@LIBRARY_NAME@.cmake)
61 ENDIF (@LIBRARY_NAME@_HAS_ADDITIONAL_CONFIG_FILE)