summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt10
1 files changed, 9 insertions, 1 deletions
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