]> Creatis software - creaMaracasVisu.git/blob - appli/BasicViewer/CMakeLists.txt
*** empty log message ***
[creaMaracasVisu.git] / appli / BasicViewer / 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   TestAppli  )
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 FIND_PACKAGE(crea REQUIRED)
25 IF (crea_FOUND)
26   INCLUDE(${crea_USE_FILE})
27 ENDIF(crea_FOUND)
28
29 FIND_PACKAGE(creaMaracasVisu REQUIRED)
30 IF (creaMaracasVisu_FOUND)
31   INCLUDE(${creaMaracasVisu_USE_FILE})
32 ENDIF(creaMaracasVisu_FOUND)
33
34 FIND_PACKAGE(BBTK REQUIRED)
35 IF (BBTK_FOUND)
36   INCLUDE(${BBTK_USE_FILE})
37 ENDIF(BBTK_FOUND)
38
39 #INCLUDE_DIRECTORIES(${CREAMARACASVISU_INCLUDE_DIR})
40
41
42
43 #----------------------------------------------------------------------------
44 # DEPENDENCIES (LIBRARIES TO LINK WITH)
45
46 MESSAGE ("::::::::::::::::::::THIS IS THE PATH OF VTK = ${VTK_LIBRARIES}")
47 MESSAGE ("::::::::::::::::::::THIS IS THE PATH OF CREA = ${crea_LIBRARIES}")
48 MESSAGE ("::::::::::::::::::::THIS IS THE PATH OF CREA = ${creaMaracasVisu_LIBRARIES}")
49 SET ( ${EXE_NAME}_LINK_LIBRARIES
50       ${crea_LIBRARIES}
51       ${WXWIDGETS_LIBRARIES}
52   #    ${KWWidgets_LIBRARIES}
53       ${VTK_LIBRARIES}
54   #    ${ITK_LIBRARIES}
55       ${GDCM_LIBRARIES}
56       ${BOOST_LIBRARIES}
57 #     BBTK
58  #   creaMaracasVisu
59   
60   # USER! : Add here those agmonst the various (?) PROJECT LIBRARIES
61   # you need for the current executable
62   # (If you created only one Library, don't forget it !...) 
63   
64   )
65 #----------------------------------------------------------------------------
66
67 #----------------------------------------------------------------------------
68 # USER! : UNCOMMENT NEXT LINE IF YOU WANT A CONSOLE ON WINDOWS
69 # NB : YOUR MAIN MUST BE ADAPTED ALSO
70 #      SEE THE MACRO CREA_WXMAIN_WITH_CONSOLE IN creaWx.h
71 #SET(${EXE_NAME}_CONSOLE TRUE)
72 #----------------------------------------------------------------------------
73
74 #----------------------------------------------------------------------------
75 # CREATES AND INSTALLS THE EXE
76 CREA_ADD_EXECUTABLE( ${EXE_NAME} )
77 #----------------------------------------------------------------------------
78
79