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