]> Creatis software - bbtk.git/blob - packages/demo/CMakeLists.txt
#3191 BBTK Feature New Normal - HtmlWindow Box
[bbtk.git] / packages / demo / CMakeLists.txt
1  # ---------------------------------------------------------------------
2  #
3  # Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image
4  #                        pour la SantÈ)
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
8  #
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.
15  #
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
20  #  liability.
21  #
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  # ------------------------------------------------------------------------ */
25  
26 #===========================================================================
27 # CMAKE SETTINGS FOR BUILDING A BBTK PACKAGE
28 #===========================================================================
29
30 #===========================================================================
31 # THE NAME OF THE BBTK PACKAGE
32 SET(BBTK_PACKAGE_NAME demo)
33 #===========================================================================
34
35
36
37 #===========================================================================
38 # IF IT IS A STANDALONE PROJECT UNCOMMENT NEXT LINE TO DECLARE YOUR PROJECT
39 # PROJECT(bb${BBTK_PACKAGE_NAME})
40 #===========================================================================
41
42 #===========================================================================
43 # PACKAGE AUTHOR
44 # !!! NO COMMA ALLOWED !!!
45 SET(${BBTK_PACKAGE_NAME}_AUTHOR "info-dev@creatis.univ-lyon1.fr")
46 #===========================================================================
47
48 #===========================================================================
49 # PACKAGE DESCRIPTION
50 SET(${BBTK_PACKAGE_NAME}_DESCRIPTION "Some good-looking applications.")
51 #===========================================================================
52
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 #===========================================================================
59
60
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 #===========================================================================
70
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 
78 #   std
79 #   wx
80 #   itk
81 #   vtk
82 #   itkvtk
83 #   wxvtk
84   # ...
85 #  )
86 #===========================================================================
87
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
97 #    )
98 #===========================================================================
99
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
109 #    )
110 #===========================================================================
111
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 !!
121 #)
122 #===========================================================================
123
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 !!
133 #)
134 #===========================================================================
135
136 #===========================================================================
137 SET(${BBTK_PACKAGE_NAME}_INCLUDE_DIRS
138   # LIST HERE YOUR ADDITIONAL INCLUDE DIRECTORIES 
139   # EXCEPT :
140   #  - src
141   #  - bbtk dirs
142   #  - automatically handled libraries or packages : wx, vtk... (see above)
143   #  - the dirs automatically set by other libraries found by FIND_PACKAGE
144   )
145 #===========================================================================
146
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 
151   )
152 #===========================================================================
153
154
155 #===========================================================================
156 # IF NEEDED : UNCOMMENT NEXT LINE 
157 # AND LIST ADDITIONNAL DIRECTORIES 
158 # IN WHICH TO LOOK FOR LIBRARIES TO LINK AGAINST
159 # LINK_DIRECTORIES()
160 #===========================================================================
161
162 #===========================================================================
163 # SET TO TRUE TO HAVE INFORMATION ON LIBRARIES FOUND DURING CMAKE CONFIGURE
164 SET(FIND_PACKAGE_VERBOSE TRUE)
165 #===========================================================================
166
167 #===========================================================================
168 # END OF USER SECTION
169 #===========================================================================
170
171
172
173
174
175 #===========================================================================
176 # Include configuration script
177 INCLUDE(Configure.cmake)
178 #===========================================================================
179
180 #===========================================================================
181 # EOF
182 #===========================================================================
183