]> Creatis software - bbtkGEditor.git/blob - appli/bbEditor/CMakeLists.txt
hi ..
[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
14 IF(BBTK_USE_WXWIDGETS AND WIN32)
15   ADD_EXECUTABLE(bbEditor WIN32 ${SOURCES})  
16   SET_TARGET_PROPERTIES(bbEditor PROPERTIES LINK_FLAGS /subsystem:console )
17 ELSE(BBTK_USE_WXWIDGETS AND WIN32)
18   ADD_EXECUTABLE(bbEditor MACOSX_BUNDLE ${SOURCES}  )  
19 ENDIF(BBTK_USE_WXWIDGETS AND WIN32)
20
21
22 TARGET_LINK_LIBRARIES(bbEditor 
23                                 bbsWxGUIEditorGraphic 
24                                 ${VTK_LIBRARIES} 
25                                 ${WXWIDGETS_LIBRARIES}
26                                 ${creaMaracasVisu_LIBRARIES} 
27                                 ${BBTK_LIBRARIES}
28                         )
29
30 INSTALL_TARGETS(/bin/ bbEditor)