From 653895414dca71dde86dd78f493b5b646bb36ab7 Mon Sep 17 00:00:00 2001 From: Alex Neundorf Date: Sat, 12 May 2012 21:25:36 +0200 Subject: rework of extra-cmake-modules -rename the cmake package from extra-cmake-modules to ECM -change variable names and docs accordingly -move setting of Qt-related defines from ECMQtFrameworks.cmake to KDECompilerSettings.cmake -remove ECMSetVersionVariables.cmake, we'll do it some other way -rename ECMConfig.cmake.in to ECMQtFrameworkConfig.cmake.in, since this is where it is used, and it would have the same name as ECMConfig.cmake.in which is for extra-cmake-modules itself Alex --- modules/ECMQtFramework.cmake | 24 +++++------------------- 1 file changed, 5 insertions(+), 19 deletions(-) (limited to 'modules/ECMQtFramework.cmake') diff --git a/modules/ECMQtFramework.cmake b/modules/ECMQtFramework.cmake index 5cc428bd..fdbb6de9 100644 --- a/modules/ECMQtFramework.cmake +++ b/modules/ECMQtFramework.cmake @@ -89,21 +89,6 @@ include(FeatureSummary) -include(${CMAKE_CURRENT_LIST_DIR}/../kde-modules/KDEInstallDirs.cmake) -include(${CMAKE_CURRENT_LIST_DIR}/../kde-modules/KDECMakeSettings.cmake) -include(${CMAKE_CURRENT_LIST_DIR}/../kde-modules/KDECompilerSettings.cmake) - - -add_definitions(-DQT_NO_CAST_TO_ASCII) -add_definitions(-DQT_NO_CAST_FROM_ASCII) -add_definitions(-DQT_STRICT_ITERATORS) -add_definitions(-DQT_NO_URL_CAST_FROM_STRING) -add_definitions(-DQT_NO_CAST_FROM_BYTEARRAY) -add_definitions(-DQT_NO_KEYWORDS) -add_definitions(-DQT_USE_FAST_CONCATENATION) -add_definitions(-DQT_USE_FAST_OPERATOR_PLUS) - - set(LIBRARY_TYPE SHARED) set(ECM_TARGET_DEFAULT_ARGS @@ -115,12 +100,13 @@ set(ECM_TARGET_DEFAULT_ARGS set(CMAKECONFIG_INSTALL_DIR "${CMAKECONFIG_INSTALL_PREFIX}/${PROJECT_NAME}") -file(RELATIVE_PATH relInstallDir "${CMAKE_INSTALL_PREFIX}/${CMAKECONFIG_INSTALL_DIR}" "${CMAKE_INSTALL_PREFIX}") +include(CMakePackageConfigHelpers) -configure_file( - "${CMAKE_CURRENT_LIST_DIR}/ECMConfig.cmake.in" +configure_package_config_file( + "${CMAKE_CURRENT_LIST_DIR}/ECMQtFrameworkConfig.cmake.in" "${CMAKE_BINARY_DIR}/${PROJECT_NAME}Config.cmake" - @ONLY + INSTALL_DESTINATION ${CMAKECONFIG_INSTALL_DIR} + PATH_VARS INCLUDE_INSTALL_DIR LIB_INSTALL_DIR CMAKE_INSTALL_PREFIX ) include(WriteBasicConfigVersionFile) -- cgit v1.2.1