1 #===========================================================================
2 # CMAKE SETTINGS FOR BUILDING A BBTK PACKAGE
3 #===========================================================================
5 #===========================================================================
6 # THE NAME OF THE BBTK PACKAGE
7 SET(BBTK_PACKAGE_NAME wx)
8 #===========================================================================
10 #===========================================================================
11 # IF IT IS A STANDALONE PROJECT UNCOMMENT NEXT LINE TO DECLARE YOUR PROJECT
12 # PROJECT(bb${BBTK_PACKAGE_NAME})
13 #===========================================================================
15 #===========================================================================
16 # UNCOMMENT EACH LIBRARY NEEDED
17 # SET(${BBTK_PACKAGE_NAME}_USE_VTK ON)
18 # SET(${BBTK_PACKAGE_NAME}_USE_ITK ON)
19 # SET(${BBTK_PACKAGE_NAME}_USE_GDCM ON)
20 # SET(${BBTK_PACKAGE_NAME}_USE_GSMIS ON)
21 SET(${BBTK_PACKAGE_NAME}_USE_WXWIDGETS ON)
22 #===========================================================================
24 #===========================================================================
25 # LIST HERE THE OTHER bbtk PACKAGES NEEDED
26 SET(${BBTK_PACKAGE_NAME}_USE_PACKAGES
33 #===========================================================================
35 #===========================================================================
37 # !!! NO COMMA ALLOWED !!!
38 SET(${BBTK_PACKAGE_NAME}_AUTHOR "eduardo.davila/laurent.guigues@creatis.insa-lyon.fr")
39 #===========================================================================
41 #===========================================================================
43 SET(${BBTK_PACKAGE_NAME}_DESCRIPTION "Basic graphical interface elements (sliders, buttons ...) based on wxWidgets")
44 #===========================================================================
46 #===========================================================================
47 # PACKAGE VERSION NUMBER
48 SET(${BBTK_PACKAGE_NAME}_MAJOR_VERSION 1)
49 SET(${BBTK_PACKAGE_NAME}_MINOR_VERSION 0)
50 SET(${BBTK_PACKAGE_NAME}_BUILD_VERSION 0)
51 #===========================================================================
53 #===========================================================================
54 # THE SOURCES OF THE PACKAGE
55 # EITHER UNCOMMENT NEXT LINE TO COMPILE ALL .cxx OF THE src DIRECTORY :
56 SET(${BBTK_PACKAGE_NAME}_COMPILE_ALL_CXX ON)
57 # ... OR LIST THE FILES TO COMPILE MANUALLY :
58 #SET(${BBTK_PACKAGE_NAME}_SOURCES
59 # LIST HERE THE FILES TO COMPILE TO BUILD THE LIB
60 # E.G. TO COMPILE "toto.cxx" ADD "toto" (NO EXTENSION)
61 # THE PATH MUST BE RELATIVE TO THE src FOLDER
63 #===========================================================================
65 #===========================================================================
66 # THE xml SOURCES OF THE PACKAGE
67 # EITHER UNCOMMENT NEXT LINE TO bbfy ALL .xml OF THE src DIRECTORY :
68 SET(${BBTK_PACKAGE_NAME}_COMPILE_ALL_XML ON)
69 # ... OR LIST THE FILES TO COMPILE MANUALLY :
70 #SET(${BBTK_PACKAGE_NAME}_XML_SOURCES
71 # LIST HERE THE FILES TO bbfy TO BUILD THE LIB
72 # E.G. TO bbfy "toto.xml" ADD "toto" (NO EXTENSION)
73 # THE PATH MUST BE RELATIVE TO THE src FOLDER
75 #===========================================================================
77 #===========================================================================
78 # THE SCRIPT-DEFINED BOXES OF THE PACKAGE (bbs)
79 # EITHER UNCOMMENT NEXT LINE TO INCLUDE ALL .bbs OF THE bbs/boxes DIRECTORY :
80 SET(${BBTK_PACKAGE_NAME}_INCLUDE_ALL_BBS_BOXES ON)
81 # ... OR LIST THE FILES TO INCLUDE MANUALLY :
82 # SET(${BBTK_PACKAGE_NAME}_BBS_BOXES
83 # LIST HERE THE bbs FILES TO INCLUDE
84 # E.G. TO INCLUDE "boxes/bbtoto.bbs" ADD "boxes/bbtoto" (NO EXTENSION)
85 # !! THE PATH MUST BE RELATIVE TO THE bbs FOLDER !!
87 #===========================================================================
89 #===========================================================================
90 # THE SCRIPT-DEFINED APPLICATIONS OF THE PACKAGE (bbs)
91 # EITHER UNCOMMENT NEXT LINE TO INCLUDE ALL .bbs OF THE bbs/appli DIRECTORY :
92 SET(${BBTK_PACKAGE_NAME}_INCLUDE_ALL_BBS_APPLI ON)
93 # ... OR LIST THE FILES TO INCLUDE MANUALLY :
94 # SET(${BBTK_PACKAGE_NAME}_BBS_APPLI
95 # LIST HERE THE bbs FILES TO INCLUDE
96 # E.G. TO INCLUDE "appli/testToto.bbs" ADD "appli/testToto" (NO EXTENSION)
97 # !! THE PATH MUST BE RELATIVE TO THE bbs FOLDER !!
99 #===========================================================================
101 #===========================================================================
102 SET(${BBTK_PACKAGE_NAME}_INCLUDE_DIRS
103 # LIST HERE YOUR ADDITIONAL INCLUDE DIRECTORIES
107 # - automatically handled libraries or packages : wx, vtk... (see above)
108 # - the dirs automatically set by other libraries found by FIND_PACKAGE
110 #===========================================================================
112 #===========================================================================
113 SET(${BBTK_PACKAGE_NAME}_LIBS
114 # LIST HERE THE ADDITIONAL LIBS TO LINK AGAINST
115 # EXCEPT : the same libs than for INCLUDE_DIRS
117 #===========================================================================
121 #===========================================================================
122 # END OF USER SECTION
123 #===========================================================================
125 #===========================================================================
126 # Include configuration script
127 INCLUDE(Configure.cmake)
128 #===========================================================================
130 #===========================================================================
132 #===========================================================================