You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
964 B
24 lines
964 B
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)
|
|
SET(QT_MOC_EXECUTABLE "/usr/bin/tmoc")
|
|
kde3_automoc(${kdialogd3_SRCS})
|
|
add_executable(kdialogd3 ${kdialogd3_SRCS})
|
|
target_link_libraries(kdialogd3 qt-mt 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)
|