summaryrefslogtreecommitdiffstats
path: root/kdialogd3/CMakeLists.txt
blob: 2ee25696c4c9cac112edab1b35d562fd1d754c73 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
set(QT_MT_REQUIRED TRUE)
find_package(KDE3)
find_package(Qt3)

if (NOT QT_INCLUDE_DIR)
    MESSAGE(STATUS_ERROR "Qt3 package not found--assuming TQt4")
    SET(QT_INCLUDE_DIR "/usr/include/qt4" CACHE PATH "" FORCE)
endif (NOT QT_INCLUDE_DIR)

if (KDE3_INCLUDE_DIR)
    message("** INFORMATION: KDialogD for KDE3 will be built.")
    link_directories(${KDE3_LIB_DIR})
    include_directories (${CMAKE_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_SOURCE_DIR}/common ${CMAKE_BINARY_DIR} ${KDE3_INCLUDE_DIR} ${QT_INCLUDE_DIR})
    set(kdialogd3_SRCS kdialogd.cpp)
    kde3_automoc(${kdialogd3_SRCS})
    add_executable(kdialogd3 ${kdialogd3_SRCS})
    target_link_libraries(kdialogd3 kdeui kio kdecore)
    install_targets(/bin kdialogd3)
    add_subdirectory(po)
else (KDE3_INCLUDE_DIR)
    message("** ERROR      : Could not locate Qt3/KDE3 headers, KDialogD for KDE3 will not be built.")
endif (KDE3_INCLUDE_DIR)