diff options
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 104 |
1 files changed, 52 insertions, 52 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index cc67452f2..756f1679a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,11 +1,11 @@ -## Polkit Qt Library -project("PolkitQt-1") +## Polkit TQt Library +project("PolkitTQt-1") cmake_minimum_required(VERSION 2.6.0) set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules" ${CMAKE_MODULE_PATH}) -set(QT_MIN_VERSION "4.4.0") +set(TQT_MIN_VERSION "4.4.0") find_package(Qt4 REQUIRED) find_package(Automoc4 REQUIRED) @@ -13,9 +13,9 @@ find_package(Polkit REQUIRED) find_package(GObject REQUIRED) find_package(GIO REQUIRED) -add_definitions(-DQT_NO_KEYWORDS) +add_definitions(-DTQT_NO_KEYWORDS) -include (${QT_USE_FILE}) +include (${TQT_USE_FILE}) include (InstallSettings) include (MacroWriteBasicCMakeVersionFile) include (CheckFunctionExists) @@ -30,7 +30,7 @@ include_directories( ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/core ${CMAKE_CURRENT_SOURCE_DIR}/includes - ${QT_QTXML_INCLUDE_DIR} + ${TQT_TQTXML_INCLUDE_DIR} ) # Check for older polkit @@ -40,70 +40,70 @@ check_function_exists(polkit_agent_listener_register HAVE_POLKIT_AGENT_LISTENER_ check_function_exists(polkit_authority_get_sync HAVE_POLKIT_AUTHORITY_GET_SYNC) if (NOT HAVE_POLKIT_AGENT_LISTENER_REGISTER OR NOT HAVE_POLKIT_AUTHORITY_GET_SYNC) - message(STATUS "You have an older polkit-1 version: Polkit-Qt-1 will be built in compatibility mode") - add_definitions(-DPOLKIT_QT_1_COMPATIBILITY_MODE) + message(STATUS "You have an older polkit-1 version: Polkit-TQt-1 will be built in compatibility mode") + add_definitions(-DPOLKIT_TQT_1_COMPATIBILITY_MODE) endif (NOT HAVE_POLKIT_AGENT_LISTENER_REGISTER OR NOT HAVE_POLKIT_AUTHORITY_GET_SYNC) if(${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}.${CMAKE_PATCH_VERSION} VERSION_GREATER 2.6.2) option(USE_COMMON_CMAKE_PACKAGE_CONFIG_DIR "Prefer to install the <package>Config.cmake files to lib/cmake/<package> instead of lib/<package>/cmake" TRUE) endif(${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}.${CMAKE_PATCH_VERSION} VERSION_GREATER 2.6.2) -set(POLKITQT-1_VERSION_MAJOR 0 CACHE INT "PolkitQt-1's major version number" FORCE) -set(POLKITQT-1_VERSION_MINOR 103 CACHE INT "PolkitQt-1's minor version number" FORCE) -set(POLKITQT-1_VERSION_PATCH 0 CACHE INT "PolkitQt-1's release version number" FORCE) -set(POLKITQT-1_VERSION_STRING - "${POLKITQT-1_VERSION_MAJOR}.${POLKITQT-1_VERSION_MINOR}.${POLKITQT-1_VERSION_PATCH}") +set(POLKITTQT-1_VERSION_MAJOR 0 CACHE INT "PolkitTQt-1's major version number" FORCE) +set(POLKITTQT-1_VERSION_MINOR 103 CACHE INT "PolkitTQt-1's minor version number" FORCE) +set(POLKITTQT-1_VERSION_PATCH 0 CACHE INT "PolkitTQt-1's release version number" FORCE) +set(POLKITTQT-1_VERSION_STRING + "${POLKITTQT-1_VERSION_MAJOR}.${POLKITTQT-1_VERSION_MINOR}.${POLKITTQT-1_VERSION_PATCH}") # The SONUMBER of the polkit-qt-1 libraries -set(POLKITQT-1_ABI_VERSION 1) +set(POLKITTQT-1_ABI_VERSION 1) # The version number of the polkit-qt-1 libraries -set(POLKITQT-1_LIBRARY_VERSION "${POLKITQT-1_ABI_VERSION}.${POLKITQT-1_VERSION_MINOR}.${POLKITQT-1_VERSION_PATCH}") +set(POLKITTQT-1_LIBRARY_VERSION "${POLKITTQT-1_ABI_VERSION}.${POLKITTQT-1_VERSION_MINOR}.${POLKITTQT-1_VERSION_PATCH}") -configure_file(polkitqt1-version.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/polkitqt1-version.h) +configure_file(polkittqt1-version.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/polkittqt1-version.h) install(FILES - gui/polkitqt1-gui-action.h - gui/polkitqt1-gui-actionbutton.h - gui/polkitqt1-gui-actionbuttons.h + gui/polkittqt1-gui-action.h + gui/polkittqt1-gui-actionbutton.h + gui/polkittqt1-gui-actionbuttons.h - core/polkitqt1-authority.h - core/polkitqt1-details.h - core/polkitqt1-identity.h - core/polkitqt1-subject.h - core/polkitqt1-temporaryauthorization.h - core/polkitqt1-actiondescription.h + core/polkittqt1-authority.h + core/polkittqt1-details.h + core/polkittqt1-identity.h + core/polkittqt1-subject.h + core/polkittqt1-temporaryauthorization.h + core/polkittqt1-actiondescription.h - agent/polkitqt1-agent-listener.h - agent/polkitqt1-agent-session.h + agent/polkittqt1-agent-listener.h + agent/polkittqt1-agent-session.h - ${CMAKE_CURRENT_BINARY_DIR}/polkitqt1-version.h - polkitqt1-export.h + ${CMAKE_CURRENT_BINARY_DIR}/polkittqt1-version.h + polkittqt1-export.h DESTINATION ${INCLUDE_INSTALL_DIR}/polkit-qt-1 COMPONENT Devel) install(FILES - includes/PolkitQt1/Authority - includes/PolkitQt1/Details - includes/PolkitQt1/Identity - includes/PolkitQt1/Subject - includes/PolkitQt1/TemporaryAuthorization - includes/PolkitQt1/ActionDescription + includes/PolkitTQt1/Authority + includes/PolkitTQt1/Details + includes/PolkitTQt1/Identity + includes/PolkitTQt1/Subject + includes/PolkitTQt1/TemporaryAuthorization + includes/PolkitTQt1/ActionDescription DESTINATION - ${INCLUDE_INSTALL_DIR}/polkit-qt-1/PolkitQt1 COMPONENT Devel) + ${INCLUDE_INSTALL_DIR}/polkit-qt-1/PolkitTQt1 COMPONENT Devel) install(FILES - includes/PolkitQt1/Gui/Action - includes/PolkitQt1/Gui/ActionButton - includes/PolkitQt1/Gui/ActionButtons + includes/PolkitTQt1/Gui/Action + includes/PolkitTQt1/Gui/ActionButton + includes/PolkitTQt1/Gui/ActionButtons DESTINATION - ${INCLUDE_INSTALL_DIR}/polkit-qt-1/PolkitQt1/Gui COMPONENT Devel) + ${INCLUDE_INSTALL_DIR}/polkit-qt-1/PolkitTQt1/Gui COMPONENT Devel) install(FILES - includes/PolkitQt1/Agent/Listener - includes/PolkitQt1/Agent/Session + includes/PolkitTQt1/Agent/Listener + includes/PolkitTQt1/Agent/Session DESTINATION - ${INCLUDE_INSTALL_DIR}/polkit-qt-1/PolkitQt1/Agent COMPONENT Devel) + ${INCLUDE_INSTALL_DIR}/polkit-qt-1/PolkitTQt1/Agent COMPONENT Devel) if(NOT WIN32) # Pkgconfig @@ -120,21 +120,21 @@ if(NOT WIN32) endif(NOT WIN32) # CMake Config files -configure_file(PolkitQt-1Config.cmake.in "${CMAKE_BINARY_DIR}/PolkitQt-1Config.cmake" @ONLY) +configure_file(PolkitTQt-1Config.cmake.in "${CMAKE_BINARY_DIR}/PolkitTQt-1Config.cmake" @ONLY) # this file is used by to check if the installed version can be used. -macro_write_basic_cmake_version_file(${CMAKE_BINARY_DIR}/PolkitQt-1ConfigVersion.cmake - ${POLKITQT-1_VERSION_MAJOR} ${POLKITQT-1_VERSION_MINOR} ${POLKITQT-1_VERSION_PATCH}) +macro_write_basic_cmake_version_file(${CMAKE_BINARY_DIR}/PolkitTQt-1ConfigVersion.cmake + ${POLKITTQT-1_VERSION_MAJOR} ${POLKITTQT-1_VERSION_MINOR} ${POLKITTQT-1_VERSION_PATCH}) if(USE_COMMON_CMAKE_PACKAGE_CONFIG_DIR) - set(_PolkitQt-1Config_INSTALL_DIR ${LIB_INSTALL_DIR}/cmake/PolkitQt-1) + set(_PolkitTQt-1Config_INSTALL_DIR ${LIB_INSTALL_DIR}/cmake/PolkitTQt-1) else(USE_COMMON_CMAKE_PACKAGE_CONFIG_DIR) - set(_PolkitQt-1Config_INSTALL_DIR ${LIB_INSTALL_DIR}/PolkitQt-1/cmake) + set(_PolkitTQt-1Config_INSTALL_DIR ${LIB_INSTALL_DIR}/PolkitTQt-1/cmake) endif(USE_COMMON_CMAKE_PACKAGE_CONFIG_DIR) -install(FILES ${CMAKE_BINARY_DIR}/PolkitQt-1ConfigVersion.cmake - ${CMAKE_BINARY_DIR}/PolkitQt-1Config.cmake - DESTINATION ${_PolkitQt-1Config_INSTALL_DIR} ) +install(FILES ${CMAKE_BINARY_DIR}/PolkitTQt-1ConfigVersion.cmake + ${CMAKE_BINARY_DIR}/PolkitTQt-1Config.cmake + DESTINATION ${_PolkitTQt-1Config_INSTALL_DIR} ) option(BUILD_EXAMPLES "Builds a set of examples for polkit-qt-1" OFF) if (BUILD_EXAMPLES) @@ -153,4 +153,4 @@ add_subdirectory(gui) add_subdirectory(agent) # Always last! -include (PolkitQt-1Dist) +include (PolkitTQt-1Dist) |