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}
18 set(unipresent_kpresenter1_SRCS
21 UpKpr1KpresenterDcop.cpp
23 UpKpr1Presentation.cpp
24 UpKpr1PresentationDcop.cpp
30 kde4_add_plugin(unipresent_kpresenter1 ${unipresent_kpresenter1_SRCS})
32 target_link_libraries(unipresent_kpresenter1
38 install( TARGETS unipresent_kpresenter1 DESTINATION ${PLUGIN_INSTALL_DIR} )
39 install( FILES unipresent_kpresenter1.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
40 endif(ENABLE_UNIPRESENT_KPRESENTER1)