[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-buildsystem
Subject: macro kde4_install_library
From: "Nhuh Put" <nhuh.put () web ! de>
Date: 2007-07-16 15:49:37
Message-ID: 001701c7c7c0$ea61e180$3401a8c0 () spika
[Download RAW message or body]
Hello
With default calls to install, shared libraries are installed into
LIB_INSTALL_DIR. This is fine for linux, but on windows, they should go into
BIN_INSTALL_DIR. The install function of cmake supports this with the
RUNTIME DESTINATION and LIBRARY DESTINATION options.
To make things simpler, I would like to add a macro called
kde4_install_library for this.
Usage would be kde4_install_library( kdecore ) for example.
PutHuhn
["windows_bin2.patch" (application/octet-stream)]
Index: modules/FindKDE4Internal.cmake
===================================================================
--- modules/FindKDE4Internal.cmake (revision 687968)
+++ modules/FindKDE4Internal.cmake (working copy)
@@ -193,6 +193,11 @@
# KDE4_INSTALL_HANDBOOK()
# Install the handbook documentation
#
+# KDE4_INSTALL_LIBRARY( lib )
+# Installs lib into LIB_INSTALL_DIR. Use this for libraries, wich are expected to get automatically
+# linked in on application start.
+# This macro takes care to install dlls into BIN_INSTALL_DIR on the Windows platform.
+#
# KDE4_CREATE_HTML_HANDBOOK( docbookfile )
# Create HTML version of the handbook from the docbookfile (using meinproc)
#
Index: modules/KDE4Macros.cmake
===================================================================
--- modules/KDE4Macros.cmake (revision 687968)
+++ modules/KDE4Macros.cmake (working copy)
@@ -884,3 +884,12 @@
install_xdg_mimetypes(${CMAKE_INSTALL_PREFIX} ${ARGN})
endmacro (KDE4_INSTALL_XDG_MIMETYPES)
+
+macro (KDE4_INSTALL_LIBRARY _lib)
+ install(TARGETS ${_lib}
+ RUNTIME DESTINATION ${BIN_INSTALL_DIR}
+ LIBRARY DESTINATION ${LIB_INSTALL_DIR}
+ ARCHIVE DESTINATION ${LIB_INSTALL_DIR}
+ )
+endmacro(KDE4_INSTALL_LIBRARY)
+
_______________________________________________
Kde-buildsystem mailing list
Kde-buildsystem@kde.org
https://mail.kde.org/mailman/listinfo/kde-buildsystem
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic