1 CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
3 #===========================================================================
4 # CMAKE SETTINGS FOR BUILDING A BBTK PACKAGE
5 #===========================================================================
7 #===========================================================================
8 # THE NAME OF THE BBTK PACKAGE
9 SET(BBTK_PACKAGE_NAME gdcmvtk)
10 #===========================================================================
14 #===========================================================================
15 # IF IT IS A STANDALONE PROJECT UNCOMMENT NEXT LINE TO DECLARE YOUR PROJECT
16 # PROJECT(bb${BBTK_PACKAGE_NAME})
17 #===========================================================================
19 #===========================================================================
21 # !!! NO COMMA ALLOWED !!!
22 SET(${BBTK_PACKAGE_NAME}_AUTHOR "info-dev at creatis.insa-lyon.fr")
23 #===========================================================================
25 #===========================================================================
27 SET(${BBTK_PACKAGE_NAME}_DESCRIPTION "gdcm vtk-based boxes")
28 #===========================================================================
30 #===========================================================================
31 # PACKAGE VERSION NUMBER
32 SET(${BBTK_PACKAGE_NAME}_MAJOR_VERSION 1)
33 SET(${BBTK_PACKAGE_NAME}_MINOR_VERSION 0)
34 SET(${BBTK_PACKAGE_NAME}_BUILD_VERSION 0)
35 #===========================================================================
38 #===========================================================================
39 # UNCOMMENT EACH LIBRARY NEEDED (WILL BE FOUND AND USED AUTOMATICALLY)
40 SET(${BBTK_PACKAGE_NAME}_USE_VTK ON)
41 # SET(${BBTK_PACKAGE_NAME}_USE_ITK ON)
42 SET(${BBTK_PACKAGE_NAME}_USE_GDCM ON)
43 SET(${BBTK_PACKAGE_NAME}_USE_GDCM_VTK ON)
44 # SET(${BBTK_PACKAGE_NAME}_USE_GSMIS ON)
45 # SET(${BBTK_PACKAGE_NAME}_USE_WXWIDGETS ON)
46 # SET(${BBTK_PACKAGE_NAME}_USE_KWWIDGETS ON)
47 #===========================================================================
49 #===========================================================================
50 # LIST HERE THE OTHER bbtk PACKAGES NEEDED
51 # (WILL BE FOUND AND USED AUTOMATICALLY)
52 SET(${BBTK_PACKAGE_NAME}_USE_PACKAGES
59 #===========================================================================
61 #===========================================================================
62 # THE SOURCES OF THE PACKAGE
63 # EITHER UNCOMMENT NEXT LINE TO COMPILE ALL .cxx OF THE src DIRECTORY :
64 SET(${BBTK_PACKAGE_NAME}_COMPILE_ALL_CXX ON)
65 # ... OR LIST THE FILES TO COMPILE MANUALLY :
66 #SET(${BBTK_PACKAGE_NAME}_SOURCES
67 # LIST HERE THE FILES TO COMPILE TO BUILD THE LIB
68 # E.G. TO COMPILE "toto.cxx" ADD "toto" (NO EXTENSION)
69 # THE PATH MUST BE RELATIVE TO THE src FOLDER
71 #===========================================================================
73 #===========================================================================
74 # THE xml SOURCES OF THE PACKAGE
75 # EITHER UNCOMMENT NEXT LINE TO bbfy ALL .xml OF THE src DIRECTORY :
76 SET(${BBTK_PACKAGE_NAME}_COMPILE_ALL_XML ON)
77 # ... OR LIST THE FILES TO COMPILE MANUALLY :
78 #SET(${BBTK_PACKAGE_NAME}_XML_SOURCES
79 # LIST HERE THE FILES TO bbfy TO BUILD THE LIB
80 # E.G. TO bbfy "toto.xml" ADD "toto" (NO EXTENSION)
81 # THE PATH MUST BE RELATIVE TO THE src FOLDER
83 #===========================================================================
85 #===========================================================================
86 # THE SCRIPT-DEFINED BOXES OF THE PACKAGE (bbs)
87 # EITHER UNCOMMENT NEXT LINE TO INCLUDE ALL .bbs OF THE bbs/boxes DIRECTORY :
88 SET(${BBTK_PACKAGE_NAME}_INCLUDE_ALL_BBS_BOXES ON)
89 # ... OR LIST THE FILES TO INCLUDE MANUALLY :
90 # SET(${BBTK_PACKAGE_NAME}_BBS_BOXES
91 # LIST HERE THE bbs FILES TO INCLUDE
92 # E.G. TO INCLUDE "boxes/bbtoto.bbs" ADD "boxes/bbtoto" (NO EXTENSION)
93 # !! THE PATH MUST BE RELATIVE TO THE bbs FOLDER !!
95 #===========================================================================
97 #===========================================================================
98 # THE SCRIPT-DEFINED APPLICATIONS OF THE PACKAGE (bbs)
99 # EITHER UNCOMMENT NEXT LINE TO INCLUDE ALL .bbs OF THE bbs/appli DIRECTORY :
100 SET(${BBTK_PACKAGE_NAME}_INCLUDE_ALL_BBS_APPLI ON)
101 # ... OR LIST THE FILES TO INCLUDE MANUALLY :
102 # SET(${BBTK_PACKAGE_NAME}_BBS_APPLI
103 # LIST HERE THE bbs FILES TO INCLUDE
104 # E.G. TO INCLUDE "appli/testToto.bbs" ADD "appli/testToto" (NO EXTENSION)
105 # !! THE PATH MUST BE RELATIVE TO THE bbs FOLDER !!
107 #===========================================================================
109 #===========================================================================
110 SET(${BBTK_PACKAGE_NAME}_INCLUDE_DIRS
111 # LIST HERE YOUR ADDITIONAL INCLUDE DIRECTORIES
115 # - automatically handled libraries or packages : wx, vtk... (see above)
116 # - the dirs automatically set by other libraries found by FIND_PACKAGE
118 # The path to the build tree folder is needed to find bbstd_EXPORT.h
119 ${PROJECT_BINARY_DIR}/packages/std/src
121 #===========================================================================
123 #===========================================================================
124 SET(${BBTK_PACKAGE_NAME}_LIBS
125 # LIST HERE THE ADDITIONAL LIBS TO LINK AGAINST
126 # EXCEPT : the same libs than for INCLUDE_DIRS
129 #===========================================================================
132 #===========================================================================
133 # IF NEEDED : UNCOMMENT NEXT LINE
134 # AND LIST ADDITIONNAL DIRECTORIES
135 # IN WHICH TO LOOK FOR LIBRARIES TO LINK AGAINST
137 #===========================================================================
139 #===========================================================================
140 # SET TO TRUE TO HAVE INFORMATION ON LIBRARIES FOUND DURING CMAKE CONFIGURE
141 SET(FIND_PACKAGE_VERBOSE TRUE)
142 #===========================================================================
144 #===========================================================================
145 # END OF USER SECTION
146 #===========================================================================
152 #===========================================================================
153 # Include configuration script
154 INCLUDE(Configure.cmake)
155 #===========================================================================
157 #===========================================================================
159 #===========================================================================