]> Creatis software - cpPlugins.git/blob - appli/examples/plugins/QT/example_MPRViewer/CMakeLists.txt
MPR objects updated
[cpPlugins.git] / appli / examples / plugins / QT / example_MPRViewer / CMakeLists.txt
1 SET(app_NAME "example_MPRViewer")
2
3 INCLUDE_DIRECTORIES(
4   ${CMAKE_CURRENT_SOURCE_DIR}
5   ${CMAKE_CURRENT_BINARY_DIR}
6   )
7
8 ## ====================================================
9 ## = Source code, user interafaces and resources here =
10 ## ====================================================
11
12 SET(
13   app_SOURCES
14   ${CMAKE_CURRENT_SOURCE_DIR}/example_MPRViewer.cxx
15   ${CMAKE_CURRENT_SOURCE_DIR}/main.cxx
16   )
17
18 SET(
19   app_HEADERS
20   ${CMAKE_CURRENT_SOURCE_DIR}/example_MPRViewer.h
21   )
22
23 SET(
24   app_UI
25   ${CMAKE_CURRENT_SOURCE_DIR}/example_MPRViewer.ui
26   )
27
28 ## =====================
29 ## = Compilation rules =
30 ## =====================
31
32 QT4_WRAP_UI(app_UI_HEADERS ${app_UI})
33 QT4_WRAP_CPP(app_MOC_SOURCES ${app_HEADERS})
34
35 SET(GUI_TYPE "")
36 IF(WIN32)
37   SET(GUI_TYPE WIN32)
38 ENDIF(WIN32)
39 IF(APPLE)
40   SET(GUI_TYPE MACOSX_BUNDLE)
41 ENDIF(APPLE)
42
43 ADD_EXECUTABLE(
44   ${app_NAME}
45   ${GUI_TYPE}
46   ${app_HEADERS}
47   ${app_UI_HEADERS}
48   ${app_SOURCES}
49   ${app_MOC_SOURCES}
50   )
51 TARGET_LINK_LIBRARIES(
52   ${app_NAME}
53   cpExtensions
54   cpPlugins
55   )
56
57 ## eof - $RCSfile$