]> Creatis software - cpMesh.git/blob - appli/InteractiveDeformableMeshSegmentation/CMakeLists.txt
New plugin added
[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     MainWnd_ExecutePlugins.cxx
16     )
17   SET(
18     App_SOURCES
19     main.cxx
20     )
21   SET(
22     App_QT_HEADERS
23     MainWnd.h
24     )
25   SET(
26     App_HEADERS
27     )
28   FILE(GLOB App_QT_UI  "${App_SOURCE_DIR}/*.ui")
29   FILE(GLOB App_QT_RES "${App_SOURCE_DIR}/*.qrc")
30
31   ## =====================
32   ## = Compilation rules =
33   ## =====================
34
35   INCLUDE_DIRECTORIES(
36     ${App_BINARY_DIR}
37     )
38
39   QT4_WRAP_UI(App_QT_UI_Headers ${App_QT_UI})
40   QT4_WRAP_CPP(App_QT_HEADERS_MOC_SOURCES ${App_QT_HEADERS})
41   QT4_ADD_RESOURCES(App_QT_RES_SOURCES ${App_QT_RES})
42
43   SET(GUI_TYPE "")
44   IF(WIN32)
45     SET(GUI_TYPE WIN32)
46   ENDIF(WIN32)
47   IF(APPLE)
48     SET(GUI_TYPE MACOSX_BUNDLE)
49   ENDIF(APPLE)
50
51   ADD_EXECUTABLE(
52     ${App_NAME}
53     ${GUI_TYPE}
54     ${App_QT_UI_Headers}
55     ${App_SOURCES}
56     ${App_QT_SOURCES}
57     ${App_QT_HEADERS_MOC_SOURCES}
58     ${App_QT_RES_SOURCES}
59     )
60   TARGET_LINK_LIBRARIES(
61     ${App_NAME}
62     cpm
63     ${cpPlugins_Interface_LIBRARIES}
64     ${QT_LIBRARIES}
65     ${ITK_LIBRARIES}
66     ${VTK_LIBRARIES}
67     )
68
69   CONFIGURE_FILE(
70     idms.plugins.in
71     ${PROJECT_BINARY_DIR}/idms.plugins
72     @ONLY
73     )
74   CONFIGURE_FILE(
75     idms.config
76     ${PROJECT_BINARY_DIR}/idms.config
77     @COPYONLY
78     )
79 ENDIF(BUILD_FINAL_APPLICATION)
80
81 ## eof - $RCSfile$