From f9abda2db4acb1cc00844dbf4f63392d8c208a0a Mon Sep 17 00:00:00 2001 From: Brad King Date: Wed, 1 Dec 2010 16:02:50 -0500 Subject: 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. --- Source/kwsys/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) 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} -- cgit v0.12