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 #===========================================================================
28 # CMAKE SETTINGS FOR BUILDING A BBTK PACKAGE
29 #===========================================================================
31 #===========================================================================
32 # THE NAME OF THE BBTK PACKAGE
33 SET(BBTK_PACKAGE_NAME wxvtk)
34 #===========================================================================
38 #===========================================================================
39 # IF IT IS A STANDALONE PROJECT UNCOMMENT NEXT LINE TO DECLARE YOUR PROJECT
40 # PROJECT(bb${BBTK_PACKAGE_NAME})
41 #===========================================================================
43 #===========================================================================
45 # !!! NO COMMA ALLOWED !!!
46 SET(${BBTK_PACKAGE_NAME}_AUTHOR "infodev at creatis.insa-lyon.fr")
47 #===========================================================================
49 #===========================================================================
51 SET(${BBTK_PACKAGE_NAME}_DESCRIPTION "2D/3D image/mesh viewers based on vtk and wx")
52 #===========================================================================
54 #===========================================================================
55 # PACKAGE VERSION NUMBER
56 SET(${BBTK_PACKAGE_NAME}_MAJOR_VERSION 1)
57 SET(${BBTK_PACKAGE_NAME}_MINOR_VERSION 0)
58 SET(${BBTK_PACKAGE_NAME}_BUILD_VERSION 0)
59 #===========================================================================
62 #===========================================================================
63 # UNCOMMENT EACH LIBRARY NEEDED (WILL BE FOUND AND USED AUTOMATICALLY)
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_GDCM2 ON)
68 # SET(${BBTK_PACKAGE_NAME}_USE_GSMIS ON)
69 SET(${BBTK_PACKAGE_NAME}_USE_WXWIDGETS ON)
70 #===========================================================================
72 #===========================================================================
73 # LIST HERE THE OTHER bbtk PACKAGES NEEDED
74 # (WILL BE FOUND AND USED AUTOMATICALLY)
75 SET(${BBTK_PACKAGE_NAME}_USE_PACKAGES
83 #===========================================================================
85 #===========================================================================
86 # THE SOURCES OF THE PACKAGE
87 # EITHER UNCOMMENT NEXT LINE TO COMPILE ALL .cxx OF THE src DIRECTORY :
88 SET(${BBTK_PACKAGE_NAME}_COMPILE_ALL_CXX ON)
89 # ... OR LIST THE FILES TO COMPILE MANUALLY :
90 #SET(${BBTK_PACKAGE_NAME}_SOURCES
91 # LIST HERE THE FILES TO COMPILE TO BUILD THE LIB
92 # E.G. TO COMPILE "toto.cxx" ADD "toto" (NO EXTENSION)
93 # THE PATH MUST BE RELATIVE TO THE src FOLDER
95 #===========================================================================
97 #===========================================================================
98 # THE xml SOURCES OF THE PACKAGE
99 # EITHER UNCOMMENT NEXT LINE TO bbfy ALL .xml OF THE src DIRECTORY :
100 SET(${BBTK_PACKAGE_NAME}_COMPILE_ALL_XML ON)
101 # ... OR LIST THE FILES TO COMPILE MANUALLY :
102 #SET(${BBTK_PACKAGE_NAME}_XML_SOURCES
103 # LIST HERE THE FILES TO bbfy TO BUILD THE LIB
104 # E.G. TO bbfy "toto.xml" ADD "toto" (NO EXTENSION)
105 # THE PATH MUST BE RELATIVE TO THE src FOLDER
107 #===========================================================================
109 #===========================================================================
110 # THE SCRIPT-DEFINED BOXES OF THE PACKAGE (bbs)
111 # EITHER UNCOMMENT NEXT LINE TO INCLUDE ALL .bbs OF THE bbs/boxes DIRECTORY :
112 SET(${BBTK_PACKAGE_NAME}_INCLUDE_ALL_BBS_BOXES ON)
113 # ... OR LIST THE FILES TO INCLUDE MANUALLY :
114 # SET(${BBTK_PACKAGE_NAME}_BBS_BOXES
115 # LIST HERE THE bbs FILES TO INCLUDE
116 # E.G. TO INCLUDE "boxes/bbtoto.bbs" ADD "boxes/bbtoto" (NO EXTENSION)
117 # !! THE PATH MUST BE RELATIVE TO THE bbs FOLDER !!
119 #===========================================================================
121 #===========================================================================
122 # THE SCRIPT-DEFINED APPLICATIONS OF THE PACKAGE (bbs)
123 # EITHER UNCOMMENT NEXT LINE TO INCLUDE ALL .bbs OF THE bbs/appli DIRECTORY :
124 SET(${BBTK_PACKAGE_NAME}_INCLUDE_ALL_BBS_APPLI ON)
125 # ... OR LIST THE FILES TO INCLUDE MANUALLY :
126 # SET(${BBTK_PACKAGE_NAME}_BBS_APPLI
127 # LIST HERE THE bbs FILES TO INCLUDE
128 # E.G. TO INCLUDE "appli/testToto.bbs" ADD "appli/testToto" (NO EXTENSION)
129 # !! THE PATH MUST BE RELATIVE TO THE bbs FOLDER !!
131 #===========================================================================
133 #===========================================================================
134 SET(${BBTK_PACKAGE_NAME}_INCLUDE_DIRS
135 # LIST HERE YOUR ADDITIONAL INCLUDE DIRECTORIES
139 # - automatically handled libraries or packages : wx, vtk... (see above)
140 # - the dirs automatically set by other libraries found by FIND_PACKAGE
142 # The path to the build tree folder is needed to find bbstd_EXPORT.h
143 ${PROJECT_BINARY_DIR}/packages/std/src
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 #===========================================================================
154 #===========================================================================
155 # SET TO TRUE TO HAVE INFORMATION ON LIBRARIES FOUND DURING CMAKE CONFIGURE
156 SET(FIND_PACKAGE_VERBOSE TRUE)
157 #===========================================================================
159 #===========================================================================
160 # END OF USER SECTION
161 #===========================================================================
167 #===========================================================================
168 # Include configuration script
169 INCLUDE(Configure.cmake)
170 #===========================================================================
172 #===========================================================================
174 #===========================================================================