summaryrefslogtreecommitdiffstats
path: root/kdialogd4/CMakeLists.txt
blob: 0c0f0171b9a60a841822b0146bc88c5033f96fa2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
find_package(KDE4)
find_package(Qt4)

if (KDE4_FOUND)
    message("** INFORMATION: KDialogD for KDE4 will be built.")
    include (KDE4Defaults)
    include_directories (${CMAKE_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_SOURCE_DIR}/common ${CMAKE_BINARY_DIR} ${KDE4_INCLUDE_DIR} ${QT_INCLUDE_DIR})
    set(kdialogd4_bin_SRCS kdialogd.cpp)
    kde4_add_executable(kdialogd4_bin ${kdialogd4_bin_SRCS})
    set_target_properties(kdialogd4_bin PROPERTIES OUTPUT_NAME kdialogd4)
    target_link_libraries(kdialogd4_bin ${KDE4_KDEUI_LIBS} ${KDE4_KIO_LIBS} ${KDE4_KIO_LIBS} ${KDE4_KDECORE_LIBRARY} kfile )
    install(TARGETS kdialogd4_bin ${INSTALL_TARGETS_DEFAULT_ARGS} )
    add_subdirectory(po)
else (KDE4_FOUND)
    message("** ERROR      : Could not locate Qt4/KDE4 headers, KDialogD for KDE4 will not be built.")
endif (KDE4_FOUND)