diff options
author | Maxim Biro <nurupo.contributions@gmail.com> | 2017-02-16 05:11:19 -0500 |
---|---|---|
committer | Maxim Biro <nurupo.contributions@gmail.com> | 2018-01-25 15:57:50 -0500 |
commit | 54a1ccf8cec39bfa7019659afef3db5e192fb4a8 (patch) | |
tree | dfdcbdddd60939de6d3c2f35335a61284b2e435e /cmake | |
parent | 5ef37e0b63150ee7fcbfa2d346ab6ae3f3e1305f (diff) |
Install runtime modules into bin directory
Runtime modules, such as executables and shared libraries should be
installed into "bin" instead of "lib".
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/ModulePackage.cmake | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/cmake/ModulePackage.cmake b/cmake/ModulePackage.cmake index 245e41eb..8ee8d6d7 100644 --- a/cmake/ModulePackage.cmake +++ b/cmake/ModulePackage.cmake | |||
@@ -65,10 +65,16 @@ function(install_module lib) | |||
65 | VERSION ${SOVERSION} | 65 | VERSION ${SOVERSION} |
66 | SOVERSION ${SOVERSION_MAJOR} | 66 | SOVERSION ${SOVERSION_MAJOR} |
67 | ) | 67 | ) |
68 | install(TARGETS ${lib}_shared DESTINATION ${CMAKE_INSTALL_LIBDIR}) | 68 | install(TARGETS ${lib}_shared |
69 | RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} | ||
70 | LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} | ||
71 | ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}) | ||
69 | endif() | 72 | endif() |
70 | if(ENABLE_STATIC) | 73 | if(ENABLE_STATIC) |
71 | install(TARGETS ${lib}_static DESTINATION ${CMAKE_INSTALL_LIBDIR}) | 74 | install(TARGETS ${lib}_static |
75 | RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} | ||
76 | LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} | ||
77 | ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}) | ||
72 | endif() | 78 | endif() |
73 | 79 | ||
74 | string(REPLACE ";" " " ${lib}_PKGCONFIG_LIBS "${${lib}_PKGCONFIG_LIBS}") | 80 | string(REPLACE ";" " " ${lib}_PKGCONFIG_LIBS "${${lib}_PKGCONFIG_LIBS}") |