From 4f5c5fdc9fdea73ba4a6953f5616fcaf4c9e60a3 Mon Sep 17 00:00:00 2001 From: tpearson Date: Mon, 9 May 2011 07:18:22 +0000 Subject: Adjust kpilot to have a slightly better chance of building under CMake git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kpilot@1230976 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- CMakeLists.txt | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index aae086c..bb018e5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -30,7 +30,15 @@ directory and run 'cmake path_to_kpilot [options]' there." ) endif(insource) -find_package(Qt3 REQUIRED) # find and setup Qt3 for this project +find_package(Qt3) # find and setup Qt3 for this project + +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) +SET(QT_UIC_EXECUTABLE "/usr/bin/uic-tqt") +SET(QT_MOC_EXECUTABLE "/usr/bin/tmoc") + find_package(KDE3 REQUIRED) # find and setup KDE3 for this project find_package(Pilotlink REQUIRED) find_package(Mal) # see if mal is available, but it's not required -- cgit v1.2.1