]> Creatis software - cpMesh.git/blob - appli/InteractiveDeformableMeshSegmentation/CMakeLists.txt
QuadEdgeMesh ported to cpPlugins/Extensions
[cpMesh.git] / appli / InteractiveDeformableMeshSegmentation / CMakeLists.txt
1 IF(BUILD_FINAL_APPLICATION)
2
3   ## ====================================================
4   ## = Source code, user interafaces and resources here =
5   ## ====================================================
6
7   SET(App_NAME       "InteractiveDeformableMeshSegmentation")
8   SET(App_SOURCE_DIR "${PROJECT_SOURCE_DIR}/appli/${App_NAME}")
9   SET(App_BINARY_DIR "${PROJECT_BINARY_DIR}/appli/${App_NAME}")
10
11   SET(
12     App_QT_SOURCES
13     MainWnd.cxx
14     MainWnd_LoadPlugins.cxx
15     )
16   SET(
17     App_SOURCES
18     main.cxx
19     VolumeActors.cxx
20     InteractorStyleImage.cxx
21     )
22   SET(
23     App_QT_HEADERS
24     MainWnd.h
25     )
26   SET(
27     App_HEADERS
28     VolumeActors.h
29     InteractorStyleImage.h
30     )
31   FILE(GLOB App_QT_UI  "${App_SOURCE_DIR}/*.ui")
32   FILE(GLOB App_QT_RES "${App_SOURCE_DIR}/*.qrc")
33
34   ## =====================
35   ## = Compilation rules =
36   ## =====================
37
38   INCLUDE_DIRECTORIES(
39     ${App_BINARY_DIR}
40     )
41
42   QT4_WRAP_UI(App_QT_UI_Headers ${App_QT_UI})
43   QT4_WRAP_CPP(App_QT_HEADERS_MOC_SOURCES ${App_QT_HEADERS})
44   QT4_ADD_RESOURCES(App_QT_RES_SOURCES ${App_QT_RES})
45
46   SET(GUI_TYPE "")
47   IF(WIN32)
48     SET(GUI_TYPE WIN32)
49   ENDIF(WIN32)
50   IF(APPLE)
51     SET(GUI_TYPE MACOSX_BUNDLE)
52   ENDIF(APPLE)
53
54   ADD_EXECUTABLE(
55     ${App_NAME}
56     ${GUI_TYPE}
57     ${App_QT_UI_Headers}
58     ${App_SOURCES}
59     ${App_QT_SOURCES}
60     ${App_QT_HEADERS_MOC_SOURCES}
61     ${App_QT_RES_SOURCES}
62     )
63   TARGET_LINK_LIBRARIES(
64     ${App_NAME}
65     cpm
66     ${cpPlugins_Interface_LIBRARIES}
67     ${QT_LIBRARIES}
68     ${ITK_LIBRARIES}
69     ${VTK_LIBRARIES}
70     )
71
72   CONFIGURE_FILE(
73     idms.plugins.in
74     ${PROJECT_BINARY_DIR}/idms.plugins
75     @ONLY
76     )
77   CONFIGURE_FILE(
78     idms.config
79     ${PROJECT_BINARY_DIR}/idms.config
80     @COPYONLY
81     )
82 ENDIF(BUILD_FINAL_APPLICATION)
83
84 ## eof - $RCSfile$