]> Creatis software - crea.git/blob - appli/creaNewProject/NewProject/appli/template_wx_appli/CMakeLists.txt
ed199903e6f9f46ed587a3261ddf9fe73e4b75bf
[crea.git] / appli / creaNewProject / NewProject / appli / template_wx_appli / CMakeLists.txt
1 #----------------------------------------------------------------------------
2 # USER! : SET THE NAME OF YOUR EXECUTABLE
3 # Replace 'MyExe' by the name you want to give your executable.
4 # (a good policy is to give the executable the same name that the directory)
5
6 #########################
7 SET ( EXE_NAME   MyExeWx  )
8 #########################
9
10 #----------------------------------------------------------------------------
11
12 #----------------------------------------------------------------------------
13 # EXECUTABLE SOURCES (TO BE COMPILED)
14 # EITHER LIST ALL .cxx, *.cpp, *.cc IN CURRENT DIR USING NEXT LINE:
15
16 FILE(GLOB ${EXE_NAME}_SOURCES *.cxx *.cpp *.cc)
17
18 # OR MANUALLY LIST YOUR FILES WITH NEXT COMMAND (WITHOUT EXTENSION)
19 #  SET ( ${EXE_NAME}_SOURCES 
20 #   
21 #    )
22 #----------------------------------------------------------------------------
23
24 INCLUDE_DIRECTORIES (
25
26 # USER! : Add here the directories holding th extra .h files you need
27 # e.g.
28 # ../../lib/<my_library_I_just_created>
29
30 )
31
32 #----------------------------------------------------------------------------
33 # DEPENDENCIES (LIBRARIES TO LINK WITH)
34 SET ( ${EXE_NAME}_LINK_LIBRARIES
35   ${crea_LIBRARIES}
36   ${WXWIDGETS_LIBRARIES}
37   #    ${KWWidgets_LIBRARIES}
38   #    ${VTK_LIBRARIES}
39   #    ${ITK_LIBRARIES}
40   #    ${GDCM_LIBRARIES}
41   #    ${BOOST_LIBRARIES}
42   
43   # USER! : Add here those agmonst the various (?) PROJECT LIBRARIES
44   # you need for the current executable
45   # (If you created only one Library, don't forget it !...) 
46   
47   )
48 #----------------------------------------------------------------------------
49
50 #----------------------------------------------------------------------------
51 # USER! : UNCOMMENT NEXT LINE IF YOU WANT A CONSOLE ON WINDOWS
52 # NB : YOUR MAIN MUST BE ADAPTED ALSO
53 #      SEE THE MACRO CREA_WXMAIN_WITH_CONSOLE IN creaWx.h
54 #SET(${EXE_NAME}_CONSOLE TRUE)
55 #----------------------------------------------------------------------------
56
57 #----------------------------------------------------------------------------
58 # CREATES AND INSTALLS THE EXE
59
60 IF (NOT  ${USE_WXWIDGETS})
61   message("You are asking to create a WX application, but the flag USE_WXWIDGETS is OFF.")
62   message("Set to ON the flag USE_WXWIDGETS in the root CMakefile.txt of your project. ")
63 ENDIF(NOT  ${USE_WXWIDGETS})
64
65 set ( ${EXE_NAME}_HAS_GUI true )
66 #set ( ${EXE_NAME}_CONSOLE true )
67
68 CREA_ADD_EXECUTABLE( ${EXE_NAME} )
69 #----------------------------------------------------------------------------
70
71