aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Neundorf <neundorf@kde.org>2012-05-07 22:33:30 +0200
committerAlex Neundorf <neundorf@kde.org>2012-05-07 22:33:30 +0200
commitae1191b1a85a73151fffe084e853581683698489 (patch)
tree25498f4b5d606962109f974afff9775c7bf32e1a
parent4b3247133eb89ab1ff991ca2f85f8898b235dd72 (diff)
downloadextra-cmake-modules-ae1191b1a85a73151fffe084e853581683698489.tar.gz
extra-cmake-modules-ae1191b1a85a73151fffe084e853581683698489.tar.bz2
don't generate and install a Use-file anymore
As discussed with Stephen on kde-frameworks-devel Alex
-rw-r--r--modules/ECMQtFramework.cmake24
-rw-r--r--modules/ECMQtUseFile.cmake.in4
2 files changed, 3 insertions, 25 deletions
diff --git a/modules/ECMQtFramework.cmake b/modules/ECMQtFramework.cmake
index 482b922d..5cc428bd 100644
--- a/modules/ECMQtFramework.cmake
+++ b/modules/ECMQtFramework.cmake
@@ -70,18 +70,12 @@
#
# 12) The targets file is installed. This means that myspeciallib can be used as an imported target.
#
-# 13) A USE file is installed. This means that consumers of myspeciallib can
-#
-# include(${myspeciallib_USE_FILE})
-#
-# which will include the Qt USE file, and add the header directories for myspeciallib to include_directories()
-#
-# 14) A version file is created called myspeciallib_version.h, which contains version information usable by
+# 13) A version file is created called myspeciallib_version.h, which contains version information usable by
# the preprocessor. The version file must be installed by the user.
#
-# 15) The FeatureSummary module is included.
+# 14) The FeatureSummary module is included.
#
-# 16) The CMAKE_LINK_INTERFACE_LIBRARIES variable is set to empty. This means that the library targets created
+# 15) The CMAKE_LINK_INTERFACE_LIBRARIES variable is set to empty. This means that the library targets created
# will have an empty link interface unless the LINK_INTERFACE_LIBRARIES or the LINK_PUBLIC keyword
# to target_link_libraries are used.
@@ -136,12 +130,6 @@ write_basic_config_version_file("${CMAKE_BINARY_DIR}/${PROJECT_NAME}ConfigVersio
COMPATIBILITY AnyNewerVersion
)
-configure_file(
- "${CMAKE_CURRENT_LIST_DIR}/ECMQtUseFile.cmake.in"
- "${CMAKE_BINARY_DIR}/${PROJECT_NAME}Use.cmake"
- @ONLY
-)
-
install(FILES
"${CMAKE_BINARY_DIR}/${PROJECT_NAME}Config.cmake"
"${CMAKE_BINARY_DIR}/${PROJECT_NAME}ConfigVersion.cmake"
@@ -156,12 +144,6 @@ install(FILES
#COMPONENT Devel
#)
-install(FILES
- "${CMAKE_BINARY_DIR}/${PROJECT_NAME}Use.cmake"
- DESTINATION "${CMAKECONFIG_INSTALL_DIR}"
- COMPONENT Devel
-)
-
string(TOUPPER ${PROJECT_NAME} PROJECT_NAME_UPPER)
configure_file(
diff --git a/modules/ECMQtUseFile.cmake.in b/modules/ECMQtUseFile.cmake.in
deleted file mode 100644
index 39d0f51b..00000000
--- a/modules/ECMQtUseFile.cmake.in
+++ /dev/null
@@ -1,4 +0,0 @@
-find_package(Qt4 REQUIRED)
-include(${QT_USE_FILE})
-
-include_directories(${@PROJECT_NAME@_INCLUDE_DIR})