]> Creatis software - bbtk.git/blob - packages/std/CMakeLists.txt
#2969 BBTK Bug New Normal - MesureLength box in vtk package
[bbtk.git] / packages / std / 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 #===========================================================================
28 # CMAKE SETTINGS FOR BUILDING A BBTK PACKAGE
29 #===========================================================================
30
31 #===========================================================================
32 # THE NAME OF THE BBTK PACKAGE
33 SET(BBTK_PACKAGE_NAME std)
34 #===========================================================================
35
36 #===========================================================================
37 # IF IT IS A STANDALONE PROJECT UNCOMMENT NEXT LINE TO DECLARE YOUR PROJECT
38 # PROJECT(bb${BBTK_PACKAGE_NAME})
39 #===========================================================================
40
41 #===========================================================================
42 # UNCOMMENT EACH LIBRARY NEEDED
43 # SET(${BBTK_PACKAGE_NAME}_USE_VTK   ON)
44 # SET(${BBTK_PACKAGE_NAME}_USE_ITK   ON)
45 # SET(${BBTK_PACKAGE_NAME}_USE_GDCM  ON)
46 # SET(${BBTK_PACKAGE_NAME}_USE_GDCM2 ON)
47 # SET(${BBTK_PACKAGE_NAME}_USE_GSMIS ON)
48 # SET(${BBTK_PACKAGE_NAME}_USE_WXWIDGETS ON)
49 #===========================================================================
50
51 #===========================================================================
52 # LIST HERE THE OTHER bbtk PACKAGES NEEDED
53 SET(${BBTK_PACKAGE_NAME}_USE_PACKAGES 
54   # std
55   # wx
56   # itk
57   # vtk
58   # ...
59   )
60 #===========================================================================
61
62 #===========================================================================
63 # PACKAGE AUTHOR
64 # !!! NO COMMA ALLOWED !!!
65 SET(${BBTK_PACKAGE_NAME}_AUTHOR "laurent.guigues at creatis.insa-lyon.fr")
66 #===========================================================================
67
68 #===========================================================================
69 # PACKAGE DESCRIPTION
70 SET(${BBTK_PACKAGE_NAME}_DESCRIPTION "Basic useful boxes")
71 #===========================================================================
72
73 #===========================================================================
74 # PACKAGE VERSION NUMBER 
75 SET(${BBTK_PACKAGE_NAME}_MAJOR_VERSION 1)
76 SET(${BBTK_PACKAGE_NAME}_MINOR_VERSION 0)
77 SET(${BBTK_PACKAGE_NAME}_BUILD_VERSION 0)
78 #===========================================================================
79
80 #===========================================================================
81 # THE SOURCES OF THE PACKAGE
82 # EITHER UNCOMMENT NEXT LINE TO COMPILE ALL .cxx OF THE src DIRECTORY :
83 SET(${BBTK_PACKAGE_NAME}_COMPILE_ALL_CXX ON)
84 # ... OR LIST THE FILES TO COMPILE MANUALLY :
85 #SET(${BBTK_PACKAGE_NAME}_SOURCES
86 # LIST HERE THE FILES TO COMPILE TO BUILD THE LIB
87 # E.G. TO COMPILE "toto.cxx" ADD "toto" (NO EXTENSION)
88 # THE PATH MUST BE RELATIVE TO THE src FOLDER
89 #    )
90 #===========================================================================
91
92 #===========================================================================
93 # THE xml SOURCES OF THE PACKAGE
94 # EITHER UNCOMMENT NEXT LINE TO bbfy ALL .xml OF THE src DIRECTORY :
95 SET(${BBTK_PACKAGE_NAME}_COMPILE_ALL_XML ON)
96 # ... OR LIST THE FILES TO COMPILE MANUALLY :
97 #SET(${BBTK_PACKAGE_NAME}_XML_SOURCES
98 # LIST HERE THE FILES TO bbfy TO BUILD THE LIB
99 # E.G. TO bbfy "toto.xml" ADD "toto" (NO EXTENSION)
100 # THE PATH MUST BE RELATIVE TO THE src FOLDER
101 #    )
102 #===========================================================================
103
104 #===========================================================================
105 # THE SCRIPT-DEFINED BOXES OF THE PACKAGE (bbs)
106 # EITHER UNCOMMENT NEXT LINE TO INCLUDE ALL .bbs OF THE bbs/boxes DIRECTORY :
107 SET(${BBTK_PACKAGE_NAME}_INCLUDE_ALL_BBS_BOXES ON)
108 # ... OR LIST THE FILES TO INCLUDE MANUALLY :
109 # SET(${BBTK_PACKAGE_NAME}_BBS_BOXES
110 # LIST HERE THE bbs FILES TO INCLUDE 
111 # E.G. TO INCLUDE "boxes/bbtoto.bbs" ADD "boxes/bbtoto" (NO EXTENSION)
112 # !! THE PATH MUST BE RELATIVE TO THE bbs FOLDER !!
113 #)
114 #===========================================================================
115
116 #===========================================================================
117 # THE SCRIPT-DEFINED APPLICATIONS OF THE PACKAGE (bbs)
118 # EITHER UNCOMMENT NEXT LINE TO INCLUDE ALL .bbs OF THE bbs/appli DIRECTORY :
119 SET(${BBTK_PACKAGE_NAME}_INCLUDE_ALL_BBS_APPLI ON)
120 # ... OR LIST THE FILES TO INCLUDE MANUALLY :
121 # SET(${BBTK_PACKAGE_NAME}_BBS_APPLI
122 # LIST HERE THE bbs FILES TO INCLUDE 
123 # E.G. TO INCLUDE "appli/testToto.bbs" ADD "appli/testToto" (NO EXTENSION)
124 # !! THE PATH MUST BE RELATIVE TO THE bbs FOLDER !!
125 #)
126 #===========================================================================
127
128 #===========================================================================
129 SET(${BBTK_PACKAGE_NAME}_INCLUDE_DIRS
130   # LIST HERE YOUR ADDITIONAL INCLUDE DIRECTORIES 
131   # EXCEPT :
132   #  - src
133   #  - bbtk dirs
134   #  - automatically handled libraries or packages : wx, vtk... (see above)
135   #  - the dirs automatically set by other libraries found by FIND_PACKAGE
136   )
137 #===========================================================================
138
139 #===========================================================================
140 SET(${BBTK_PACKAGE_NAME}_LIBS 
141   # LIST HERE THE ADDITIONAL LIBS TO LINK AGAINST
142   # EXCEPT : the same libs than for INCLUDE_DIRS 
143   )
144 #===========================================================================
145 #===========================================================================
146 # To compile with VS under x64, /bigobj flag is needed
147 IF(MSVC AND CMAKE_SIZEOF_VOID_P MATCHES 8)
148         set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /bigobj")
149 ENDIF()
150
151
152 #===========================================================================
153 # END OF USER SECTION
154 #===========================================================================
155
156 #===========================================================================
157 # Include configuration script
158 INCLUDE(Configure.cmake)
159 #===========================================================================
160
161 #===========================================================================
162 # EOF
163 #===========================================================================
164