summaryrefslogtreecommitdiffstats
path: root/Source/kwsys
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2010-12-01 21:02:50 (GMT)
committerBrad King <brad.king@kitware.com>2010-12-01 21:10:02 (GMT)
commitf9abda2db4acb1cc00844dbf4f63392d8c208a0a (patch)
tree5e8b03e642301d34c526db6d2e63aff6cb6d7c81 /Source/kwsys
parent8b555d1d208b8bbc2f4c3ddbcd33fb8e716de058 (diff)
downloadCMake-f9abda2db4acb1cc00844dbf4f63392d8c208a0a.zip
CMake-f9abda2db4acb1cc00844dbf4f63392d8c208a0a.tar.gz
CMake-f9abda2db4acb1cc00844dbf4f63392d8c208a0a.tar.bz2
KWSys: Associate installed library with an EXPORT
A parent project may now set KWSYS_INSTALL_EXPORT_NAME to specify the EXPORT name for install(TARGETS) commands.
Diffstat (limited to 'Source/kwsys')
-rw-r--r--Source/kwsys/CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/kwsys/CMakeLists.txt b/Source/kwsys/CMakeLists.txt
index bcc7a96..18cae43 100644
--- a/Source/kwsys/CMakeLists.txt
+++ b/Source/kwsys/CMakeLists.txt
@@ -61,6 +61,8 @@
# If not given the install rules
# will not be in any component.
#
+# KWSYS_INSTALL_EXPORT_NAME = The EXPORT option value for install(TARGETS) calls.
+#
# Example:
#
# SET(KWSYS_INSTALL_BIN_DIR bin)
@@ -235,6 +237,9 @@ IF(COMMAND INSTALL)
# Setup library install rules.
SET(KWSYS_INSTALL_LIBRARY_RULE)
+ IF(KWSYS_INSTALL_EXPORT_NAME)
+ LIST(APPEND KWSYS_INSTALL_LIBRARY_RULE EXPORT ${KWSYS_INSTALL_EXPORT_NAME})
+ ENDIF()
IF(KWSYS_INSTALL_LIB_DIR)
# Install the shared library to the lib directory.
SET(KWSYS_INSTALL_LIBRARY_RULE ${KWSYS_INSTALL_LIBRARY_RULE}