]> Creatis software - cpPlugins.git/blob - appli/cpPipelineEditor/CMakeLists.txt
More on graph editor
[cpPlugins.git] / appli / cpPipelineEditor / CMakeLists.txt
1 IF(USE_QT4)
2   SET(App_NAME "cpPipelineEditor")
3
4   ## ====================================================
5   ## = Source code, user interafaces and resources here =
6   ## ====================================================
7
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     QNEBlock.cxx
14     QNEConnection.cxx
15     QNEPort.cxx
16     QNodesEditor.cxx
17     QNEMainWindow.cxx
18     #Edge.cxx
19     #GraphCanvas.cxx
20     #Node.cxx
21     #cpPipelineEditor.cxx
22     )
23   SET(
24     App_SOURCES
25     main.cxx
26     )
27   SET(
28     App_QT_HEADERS
29     QNodesEditor.h
30     QNEMainWindow.h
31     #GraphCanvas.h
32     #cpPipelineEditor.h
33     )
34   SET(
35     App_HEADERS
36     )
37   FILE(GLOB App_QT_UI  "${App_SOURCE_DIR}/*.ui")
38   FILE(GLOB App_QT_RES "${App_SOURCE_DIR}/*.qrc")
39
40   ## =====================
41   ## = Compilation rules =
42   ## =====================
43   INCLUDE_DIRECTORIES(
44     ${App_SOURCE_DIR}
45     ${App_BINARY_DIR}
46     )
47
48   QT4_WRAP_UI(App_QT_UI_Headers ${App_QT_UI})
49   QT4_WRAP_CPP(App_QT_HEADERS_MOC_SOURCES ${App_QT_HEADERS})
50   QT4_ADD_RESOURCES(App_QT_RES_SOURCES ${App_QT_RES})
51
52   SET(GUI_TYPE "")
53   IF(WIN32)
54     SET(GUI_TYPE WIN32)
55   ENDIF(WIN32)
56   IF(APPLE)
57     SET(GUI_TYPE MACOSX_BUNDLE)
58   ENDIF(APPLE)
59
60   ADD_EXECUTABLE(
61     ${App_NAME}
62     ${GUI_TYPE}
63     ${App_QT_UI_Headers}
64     ${App_SOURCES}
65     ${App_QT_SOURCES}
66     ${App_QT_HEADERS_MOC_SOURCES}
67     ${App_QT_RES_SOURCES}
68     )
69   TARGET_LINK_LIBRARIES(
70     ${App_NAME}
71     ${QT_LIBRARIES}
72     cpExtensions
73     cpPlugins_Interface
74         )
75 ENDIF(USE_QT4)
76
77 ## eof - $RCSfile$