]> Creatis software - creaMaracasVisu.git/blob - lib/GUI/Wx/SurfaceRenderer/CMakeLists.txt
9490425e1c6bd09023393f64840edd4ae8745a74
[creaMaracasVisu.git] / lib / GUI / Wx / SurfaceRenderer / CMakeLists.txt
1  #----------------------------------------------------------------------------
2 # USER! : SET THE NAME OF YOUR LIBRARY
3 # (Replace 'MyLib' by your own library name)
4
5 #############################
6 SET ( LIBRARY_NAME   GUIWxSurfaceRenderer  )
7 #############################
8
9 #----------------------------------------------------------------------------
10
11 #----------------------------------------------------------------------------
12 # CREATES A USER OPTION IN CMAKE
13 OPTION ( BUILD_${LIBRARY_NAME}  "Build ${LIBRARY_NAME} library ?" ON)
14 #----------------------------------------------------------------------------
15
16 #----------------------------------------------------------------------------
17 IF ( BUILD_${LIBRARY_NAME} )
18 #----------------------------------------------------------------------------
19
20   #----------------------------------------------------------------------------
21   # BUILD LIBRARY
22   #----------------------------------------------------------------------------
23
24   #----------------------------------------------------------------------------
25   # LIBRARY HEADERS (TO BE INSTALLED)
26   # EITHER LIST ALL .h, *.txx IN CURRENT DIR USING NEXT LINE:
27
28   FILE(GLOB ${LIBRARY_NAME}_HEADERS *.h *.txx)
29   
30   # OR MANUALLY LIST YOUR HEADERS WITH NEXT COMMAND
31   #  SET ( ${LIBRARY_NAME}_HEADERS
32   #
33   #      )
34   #----------------------------------------------------------------------------
35
36   #----------------------------------------------------------------------------
37   # LIBRARY SOURCES (TO BE COMPILED)
38   # EITHER LIST ALL .cxx, *.cpp, *.cc IN CURRENT DIR USING NEXT LINE:
39
40   FILE(GLOB ${LIBRARY_NAME}_SOURCES *.cxx *.cpp *.cc ${${LIBRARY_NAME}_HEADERS})
41
42   # OR MANUALLY LIST YOUR FILES WITH NEXT COMMAND (WITHOUT EXTENSION)
43   #  SET ( ${LIBRARY_NAME}_SOURCES 
44   #   
45   #      )
46   #----------------------------------------------------------------------------
47
48
49   #----------------------------------------------------------------------------
50   # LIBRARY DEPENDENCIES (LIBRARIES TO LINK WITH)
51   #
52   # USER! : Uncomment the Libraries you need
53   #
54   SET ( ${LIBRARY_NAME}_LINK_LIBRARIES
55   #    ${crea_LIBRARIES}
56       ${WXWIDGETS_LIBRARIES}
57   #    ${KWWidgets_LIBRARIES}
58   #    ${VTK_LIBRARIES}
59   #    ${ITK_LIBRARIES}
60   #    ${GDCM_LIBRARIES}
61   #    ${BOOST_LIBRARIES}  
62 #EED    KernelSurfaceRenderer
63
64   # If this library must link against other libraries 
65   # USER! : Add here any extra Library you need
66
67       )
68   #----------------------------------------------------------------------------
69
70   #----------------------------------------------------------------------------
71   # MACRO WHICH DOES ALL THE JOB : BUILD AND INSTALL
72
73   # USER! : The default is to create a Dynamic Library.
74   # if you need to create a static library
75   # comment out the following line :
76
77   SET(${LIBRARY_NAME}_INSTALL_TREE_RELATIVE_INCLUDE_PATHS include/creaMaracasVisu)
78   SET(${LIBRARY_NAME}_INSTALL_FOLDER creaMaracasVisu)
79   CREA_ADD_LIBRARY( ${LIBRARY_NAME} )
80   SET_TARGET_PROPERTIES(${LIBRARY_NAME} PROPERTIES LINKER_LANGUAGE C)
81
82   # and uncomment the 2 lines hereafter:
83
84   # ADD_LIBRARY(${LIBRARY_NAME} STATIC  ${${LIBRARY_NAME}_SOURCES})
85   # TARGET_LINK_LIBRARIES(${LIBRARY_NAME} ${${LIBRARY_NAME}_LINK_LIBRARIES} )
86
87   #
88   #----------------------------------------------------------------------------
89
90   #---------------------------------------------------------------------------
91 ENDIF ( BUILD_${LIBRARY_NAME} )