Basic openoffice.org control, and listening for new presentation documents, still...
[kworship.git] / unipresent / kpresenter1 / CMakeLists.txt
blob8bcd62b2c935a1818808b85e74135654bfac1b37
1 # Don't bother if kpresenter 1 doesn't run on the target system
2 if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
3   set(ENABLE_UNIPRESENT_KPRESENTER1 true)
4   message(STATUS "KPresenter 1 integration plugin will be built")
5 else(CMAKE_SYSTEM_NAME STREQUAL "Linux")
6   message(STATUS "Non-Linux target - KPresenter 1 integration plugin will not be built")
7 endif(CMAKE_SYSTEM_NAME STREQUAL "Linux")
9 if(ENABLE_UNIPRESENT_KPRESENTER1)
10   project(unipresent_kpresenter1)
12   find_package(KDE4 REQUIRED)
13   include (KDE4Defaults)
14   include_directories(${KDE4_INCLUDES}
15                       ${QT_INCLUDES}
16   )
18   set(unipresent_kpresenter1_SRCS
19       UpKpr1Dcop.cpp
20       UpKpr1AppsDcop.cpp
21       UpKpr1KpresenterDcop.cpp
22       UpKpr1Backend.cpp
23       UpKpr1Presentation.cpp
24       UpKpr1PresentationDcop.cpp
25       UpKpr1ViewDcop.cpp
26       UpKpr1Slide.cpp
27       UpKpr1SlideDcop.cpp
28   )
30   kde4_add_plugin(unipresent_kpresenter1 ${unipresent_kpresenter1_SRCS})
32   target_link_libraries(unipresent_kpresenter1
33                         unipresent
34                         ${KDE4_KDEUI_LIBS}
35                         ${QT_LIBRARIES}
36                         )
38   install( TARGETS unipresent_kpresenter1 DESTINATION ${PLUGIN_INSTALL_DIR} )
39   install( FILES unipresent_kpresenter1.desktop  DESTINATION  ${SERVICES_INSTALL_DIR} )
40 endif(ENABLE_UNIPRESENT_KPRESENTER1)