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 # ------------------------------------------------------------------------ */
28 #-----------------------------------------------------------------------------
30 MESSAGE ( STATUS "=======================================")
31 MESSAGE ( STATUS " LOOKING FOR LIBRARIES NEEDED")
32 MESSAGE ( STATUS "=======================================")
34 #-----------------------------------------------------------------------------
36 #-----------------------------------------------------------------------------
37 # 11/12/08 : BBTK IS NOW BASED ON crea
38 SET(CREA_VERBOSE_CMAKE TRUE)
39 FIND_PACKAGE(crea REQUIRED )
40 set(crea_BUILD_SETTINGS_FILE OFF)
42 INCLUDE(${crea_USE_FILE} )
44 #-----------------------------------------------------------------------------
47 #-----------------------------------------------------------------------------
49 IF(BBTK_KERNEL OR BBTK_CORE_PACKAGE)
51 #IF(BBTK_USE_SHIPPED_BOOST)
53 # MESSAGE ( STATUS "=======================================")
54 # MESSAGE ( STATUS "bbtk uses shipped boost C++ library (${BBTK_SHIPPED_BOOST})")
55 # INCLUDE_DIRECTORIES(
56 # ${PROJECT_SOURCE_DIR}/kernel/src/ThirdParty/${BBTK_SHIPPED_BOOST})
58 # TO DO : CLEANLY BLOCK auto_link.hpp INCLUSION
59 #CREA_DEFINE(BOOST_SIGNALS_NO_LIB)
60 # SET(BBTK_BOOST_LIBRARIES
64 #ELSE(BBTK_USE_SHIPPED_BOOST)
65 SET(USE_BOOST ON CACHE BOOL "Use boost C++ library" FORCE)
66 # SET(BBTK_BOOST_LIBRARIES
69 #ENDIF(BBTK_USE_SHIPPED_BOOST)
71 ENDIF(BBTK_KERNEL OR BBTK_CORE_PACKAGE)
72 #-----------------------------------------------------------------------------
76 #-----------------------------------------------------------------------------
77 CREA_FIND_AND_USE_LIBRARIES()
78 #-----------------------------------------------------------------------------
80 #-----------------------------------------------------------------------------
81 MESSAGE(STATUS "=======================================")
83 MESSAGE(STATUS "=======================================")
84 MESSAGE(STATUS " ... ALL NEEDED LIBRARIES FOUND")
85 MESSAGE(STATUS "=======================================")
87 #-----------------------------------------------------------------------------
90 #-----------------------------------------------------------------------------
91 # bbtk library dependencies
92 #-----------------------------------------------------------------------------
94 #-----------------------------------------------------------------------------
96 IF(BBTK_USE_WXWIDGETS)
97 SET(BBTK_LINK_LIBRARIES
98 ${BBTK_LINK_LIBRARIES}
99 ${WXWIDGETS_LIBRARIES}
101 ENDIF(BBTK_USE_WXWIDGETS)
102 #-----------------------------------------------------------------------------
104 #-----------------------------------------------------------------------------
106 IF(BBTK_USE_KWWIDGETS)
107 SET(BBTK_LINK_LIBRARIES
108 ${BBTK_LINK_LIBRARIES}
109 ${KWWIDGETS_LIBRARIES}
111 ENDIF(BBTK_USE_KWWIDGETS)
112 #-----------------------------------------------------------------------------
114 #-----------------------------------------------------------------------------
117 SET(BBTK_LINK_LIBRARIES
118 ${BBTK_LINK_LIBRARIES}
122 #-----------------------------------------------------------------------------
124 #-----------------------------------------------------------------------------
126 SET(BBTK_LINK_LIBRARIES
127 ${BBTK_LINK_LIBRARIES}
128 ${BBTK_BOOST_LIBRARIES}
130 #-----------------------------------------------------------------------------
132 #-----------------------------------------------------------------------------
133 # On unix systems, need to link against dl for dynamic librairies open/close
135 SET(BBTK_LINK_LIBRARIES
136 ${BBTK_LINK_LIBRARIES}
139 #-----------------------------------------------------------------------------
141 #-----------------------------------------------------------------------------
143 MESSAGE(STATUS "=======================================")
144 MESSAGE(STATUS "bbtk LINK LIBRARIES:")
145 MESSAGE(STATUS "${BBTK_LINK_LIBRARIES}")
146 MESSAGE(STATUS "=======================================")
148 #-----------------------------------------------------------------------------
150 #-----------------------------------------------------------------------------
151 # EO bbtk library dependencies
152 #-----------------------------------------------------------------------------