diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-09 07:18:22 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-09 07:18:22 +0000 |
commit | 4f5c5fdc9fdea73ba4a6953f5616fcaf4c9e60a3 (patch) | |
tree | c231302cb3f77c264e0f4598bf4b7e5c38d1341c /CMakeLists.txt | |
parent | cb7eddb91455a69cf66fcd717e91a51ca5e2cfef (diff) | |
download | kpilot-4f5c5fdc9fdea73ba4a6953f5616fcaf4c9e60a3.tar.gz kpilot-4f5c5fdc9fdea73ba4a6953f5616fcaf4c9e60a3.zip |
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
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 10 |
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 |