diff options
author | Olivier Tilloy <olivier.tilloy@canonical.com> | 2012-10-05 15:26:44 +0000 |
---|---|---|
committer | Tarmac <> | 2012-10-05 15:26:44 +0000 |
commit | a03e7e775a9751f87efb8fd7acf226b5eb25f4e3 (patch) | |
tree | 7ca7cfb2dd1e42c6c0d45918087c23fbf09dc5ae /CMakeLists.txt | |
parent | c3fbab270f60fc374bae50e787e0b2046f127a07 (diff) | |
parent | 900b75e3528ea23b9158c52e43bca905a1ee5e5f (diff) | |
download | qmenumodel-a03e7e775a9751f87efb8fd7acf226b5eb25f4e3.tar.gz qmenumodel-a03e7e775a9751f87efb8fd7acf226b5eb25f4e3.tar.bz2 qmenumodel-a03e7e775a9751f87efb8fd7acf226b5eb25f4e3.zip |
Port to Qt5.
To compile and test, one needs to install the qt5-meta-minimal package from the Canonical Qt5 Edgers PPA (https://launchpad.net/~canonical-qt5-edgers/+archive/qt5-beta1). This installs Qt5 in /opt/qt5/. cmake needs to be invoked with CMAKE_PREFIX_PATH=/opt/qt5/lib/cmake, and /opt/qt5/bin needs to be added to $PATH if one wants to generate the API documentation using qdoc.. Approved by Renato Araujo Oliveira Filho, jenkins.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 4cba967..f51f637 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,12 +1,13 @@ project(qmenumodel) -cmake_minimum_required(VERSION 2.8.0) - -find_package(Qt4 REQUIRED) +cmake_minimum_required(VERSION 2.8.9) +find_package(Qt5Core REQUIRED) include(FindPkgConfig) pkg_check_modules(GLIB REQUIRED glib-2.0>=2.32) pkg_check_modules(GIO REQUIRED gio-2.0>=2.32) +set(CMAKE_AUTOMOC ON) +set(CMAKE_INCLUDE_CURRENT_DIR ON) add_definitions(-DQT_NO_KEYWORDS) find_program(DBUS_RUNNER dbus-test-runner) @@ -39,7 +40,7 @@ endif() OPTION(GENERATE_DOC "Enable qdoc generation" OFF) if(GENERATE_DOC) message(STATUS "QDoc enabled.") - find_program(QDOC_BIN qdoc3) + find_program(QDOC_BIN qdoc) if(NOT QDOC_BIN) message(FATAL_ERROR "qdoc command not found") else() @@ -47,4 +48,3 @@ if(GENERATE_DOC) endif() endif() - |