]> Creatis software - bbtkGEditor.git/blob - appli/bbEditor/CMakeLists.txt
Bug #1760
[bbtkGEditor.git] / appli / bbEditor / CMakeLists.txt
1 #OPTION(BUILD_bbi_GRAPHICAL "Build bbi in graphical mode (requires wxWidgets)" OFF)
2 #SWITCH_ON_IF_ALL_BUILD(BUILD_bbi_GRAPHICAL)
3 #IF (BUILD_bbi_GRAPHICAL)
4 #  SET(USE_WXWIDGETS ON CACHE BOOL "Use WxWidgets" FORCE)
5 #ENDIF (BUILD_bbi_GRAPHICAL)
6
7
8 SET(SOURCES
9   bbEditor
10   )
11
12 INCLUDE_DIRECTORIES(../../lib/EditorGraphicBBS/bbsWxGUIEditorGraphic)
13 INCLUDE_DIRECTORIES(../../lib/EditorGraphicBBS/bbsKernelEditorGraphic)
14 INCLUDE_DIRECTORIES(../../lib/EditorGraphicBBS/bbsVtkGUIEditorGraphic)
15 INCLUDE_DIRECTORIES(../../data/icons)
16
17 IF(BBTK_USE_WXWIDGETS AND WIN32)
18   ADD_EXECUTABLE(bbEditor WIN32 ${SOURCES})  
19   SET_TARGET_PROPERTIES(bbEditor PROPERTIES LINK_FLAGS /subsystem:console )
20 ELSE(BBTK_USE_WXWIDGETS AND WIN32)
21   ADD_EXECUTABLE(bbEditor MACOSX_BUNDLE ${SOURCES}  )  
22 ENDIF(BBTK_USE_WXWIDGETS AND WIN32)
23
24
25
26 TARGET_LINK_LIBRARIES(bbEditor 
27                                 ${WXWIDGETS_LIBRARIES}
28                                 ${VTK_LIBRARIES} 
29                                 crea
30                                 ${creaMaracasVisu_LIBRARIES} 
31                                 ${BBTK_LIBRARIES}
32                                 bbsWxGUIEditorGraphic
33                                 bbsKernelEditorGraphic
34                                 bbsVtkGUIEditorGraphic
35
36                                 ${WXWIDGETS_LIBRARIES}
37                         )
38
39 INSTALL_TARGETS(/bin/ bbEditor)