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 # ------------------------------------------------------------------------ */
26 #===========================================================================
27 # CMAKE SETTINGS FOR BUILDING A BBTK PACKAGE
28 #===========================================================================
30 #===========================================================================
31 # THE NAME OF THE BBTK PACKAGE
32 SET(BBTK_PACKAGE_NAME demo)
33 #===========================================================================
37 #===========================================================================
38 # IF IT IS A STANDALONE PROJECT UNCOMMENT NEXT LINE TO DECLARE YOUR PROJECT
39 # PROJECT(bb${BBTK_PACKAGE_NAME})
40 #===========================================================================
42 #===========================================================================
44 # !!! NO COMMA ALLOWED !!!
45 SET(${BBTK_PACKAGE_NAME}_AUTHOR "info-dev@creatis.univ-lyon1.fr")
46 #===========================================================================
48 #===========================================================================
50 SET(${BBTK_PACKAGE_NAME}_DESCRIPTION "Some good-looking applications.")
51 #===========================================================================
53 #===========================================================================
54 # PACKAGE VERSION NUMBER
55 SET(${BBTK_PACKAGE_NAME}_MAJOR_VERSION 1)
56 SET(${BBTK_PACKAGE_NAME}_MINOR_VERSION 0)
57 SET(${BBTK_PACKAGE_NAME}_BUILD_VERSION 0)
58 #===========================================================================
61 #===========================================================================
62 # UNCOMMENT EACH LIBRARY NEEDED (WILL BE FOUND AND USED AUTOMATICALLY)
63 # LG : demo itself does not include/link against any of these libs
64 # SET(${BBTK_PACKAGE_NAME}_USE_VTK ON)
65 # SET(${BBTK_PACKAGE_NAME}_USE_ITK ON)
66 # SET(${BBTK_PACKAGE_NAME}_USE_GDCM ON)
67 # SET(${BBTK_PACKAGE_NAME}_USE_GSMIS ON)
68 # SET(${BBTK_PACKAGE_NAME}_USE_WXWIDGETS ON)
69 #===========================================================================
71 #===========================================================================
72 # LIST HERE THE OTHER bbtk PACKAGES NEEDED
73 # (WILL BE FOUND AND USED AUTOMATICALLY)
74 # LG : the demo code does not include/link against other bbtk packages
75 # the dependency is just in bbs and will be resolved dynamically
76 # (package installed or not at run time)
77 #SET(${BBTK_PACKAGE_NAME}_USE_PACKAGES
86 #===========================================================================
88 #===========================================================================
89 # THE SOURCES OF THE PACKAGE
90 # EITHER UNCOMMENT NEXT LINE TO COMPILE ALL .cxx OF THE src DIRECTORY :
91 SET(${BBTK_PACKAGE_NAME}_COMPILE_ALL_CXX ON)
92 # ... OR LIST THE FILES TO COMPILE MANUALLY :
93 #SET(${BBTK_PACKAGE_NAME}_SOURCES
94 # LIST HERE THE FILES TO COMPILE TO BUILD THE LIB
95 # E.G. TO COMPILE "toto.cxx" ADD "toto" (NO EXTENSION)
96 # THE PATH MUST BE RELATIVE TO THE src FOLDER
98 #===========================================================================
100 #===========================================================================
101 # THE xml SOURCES OF THE PACKAGE
102 # EITHER UNCOMMENT NEXT LINE TO bbfy ALL .xml OF THE src DIRECTORY :
103 SET(${BBTK_PACKAGE_NAME}_COMPILE_ALL_XML ON)
104 # ... OR LIST THE FILES TO COMPILE MANUALLY :
105 #SET(${BBTK_PACKAGE_NAME}_XML_SOURCES
106 # LIST HERE THE FILES TO bbfy TO BUILD THE LIB
107 # E.G. TO bbfy "toto.xml" ADD "toto" (NO EXTENSION)
108 # THE PATH MUST BE RELATIVE TO THE src FOLDER
110 #===========================================================================
112 #===========================================================================
113 # THE SCRIPT-DEFINED BOXES OF THE PACKAGE (bbs)
114 # EITHER UNCOMMENT NEXT LINE TO INCLUDE ALL .bbs OF THE bbs/boxes DIRECTORY :
115 SET(${BBTK_PACKAGE_NAME}_INCLUDE_ALL_BBS_BOXES ON)
116 # ... OR LIST THE FILES TO INCLUDE MANUALLY :
117 # SET(${BBTK_PACKAGE_NAME}_BBS_BOXES
118 # LIST HERE THE bbs FILES TO INCLUDE
119 # E.G. TO INCLUDE "boxes/bbtoto.bbs" ADD "boxes/bbtoto" (NO EXTENSION)
120 # !! THE PATH MUST BE RELATIVE TO THE bbs FOLDER !!
122 #===========================================================================
124 #===========================================================================
125 # THE SCRIPT-DEFINED APPLICATIONS OF THE PACKAGE (bbs)
126 # EITHER UNCOMMENT NEXT LINE TO INCLUDE ALL .bbs OF THE bbs/appli DIRECTORY :
127 SET(${BBTK_PACKAGE_NAME}_INCLUDE_ALL_BBS_APPLI ON)
128 # ... OR LIST THE FILES TO INCLUDE MANUALLY :
129 # SET(${BBTK_PACKAGE_NAME}_BBS_APPLI
130 # LIST HERE THE bbs FILES TO INCLUDE
131 # E.G. TO INCLUDE "appli/testToto.bbs" ADD "appli/testToto" (NO EXTENSION)
132 # !! THE PATH MUST BE RELATIVE TO THE bbs FOLDER !!
134 #===========================================================================
136 #===========================================================================
137 SET(${BBTK_PACKAGE_NAME}_INCLUDE_DIRS
138 # LIST HERE YOUR ADDITIONAL INCLUDE DIRECTORIES
142 # - automatically handled libraries or packages : wx, vtk... (see above)
143 # - the dirs automatically set by other libraries found by FIND_PACKAGE
145 #===========================================================================
147 #===========================================================================
148 SET(${BBTK_PACKAGE_NAME}_LIBS
149 # LIST HERE THE ADDITIONAL LIBS TO LINK AGAINST
150 # EXCEPT : the same libs than for INCLUDE_DIRS
152 #===========================================================================
155 #===========================================================================
156 # IF NEEDED : UNCOMMENT NEXT LINE
157 # AND LIST ADDITIONNAL DIRECTORIES
158 # IN WHICH TO LOOK FOR LIBRARIES TO LINK AGAINST
160 #===========================================================================
162 #===========================================================================
163 # SET TO TRUE TO HAVE INFORMATION ON LIBRARIES FOUND DURING CMAKE CONFIGURE
164 SET(FIND_PACKAGE_VERBOSE TRUE)
165 #===========================================================================
167 #===========================================================================
168 # END OF USER SECTION
169 #===========================================================================
175 #===========================================================================
176 # Include configuration script
177 INCLUDE(Configure.cmake)
178 #===========================================================================
180 #===========================================================================
182 #===========================================================================