mirror of
https://github.com/pocoproject/poco.git
synced 2025-01-31 06:35:03 +01:00
poco: library install dirs per RUNTIME/LIBRARY/ARCHIVE
For a unix system, this commit implies no changes by default. However, the ${LIB_SUFFIX} convention was added so the build can be configured for a red-hat style installation which uses lib64 by specifying cmake -DLIB_SUFFIX=64 For a windows build (msvc), this commit will cause the .dll files to be installed in the bin/ path; import libraries .lib are still installed in the lib/ path. Installing dlls into the bin path is preferable because dlls must be in the executable %PATH% to be found at runtime, as there is not equivalent of a separate library path as there is on unix.
This commit is contained in:
parent
091e6f2f28
commit
f442148670
@ -23,7 +23,9 @@ install(
|
||||
|
||||
install(
|
||||
TARGETS ${LIBNAME}
|
||||
DESTINATION lib
|
||||
LIBRARY DESTINATION lib${LIB_SUFFIX}
|
||||
ARCHIVE DESTINATION lib${LIB_SUFFIX}
|
||||
RUNTIME DESTINATION bin
|
||||
)
|
||||
|
||||
if (ENABLE_TESTS)
|
||||
|
@ -27,7 +27,9 @@ install(
|
||||
|
||||
install(
|
||||
TARGETS ${LIBNAME}
|
||||
DESTINATION lib
|
||||
LIBRARY DESTINATION lib${LIB_SUFFIX}
|
||||
ARCHIVE DESTINATION lib${LIB_SUFFIX}
|
||||
RUNTIME DESTINATION bin
|
||||
)
|
||||
|
||||
add_subdirectory( SQLite )
|
||||
|
@ -22,7 +22,9 @@ install(
|
||||
|
||||
install(
|
||||
TARGETS ${LIBNAME}
|
||||
DESTINATION lib
|
||||
LIBRARY DESTINATION lib${LIB_SUFFIX}
|
||||
ARCHIVE DESTINATION lib${LIB_SUFFIX}
|
||||
RUNTIME DESTINATION bin
|
||||
)
|
||||
|
||||
if (ENABLE_TESTS)
|
||||
|
@ -35,7 +35,9 @@ install(
|
||||
|
||||
install(
|
||||
TARGETS ${LIBNAME}
|
||||
DESTINATION lib
|
||||
LIBRARY DESTINATION lib${LIB_SUFFIX}
|
||||
ARCHIVE DESTINATION lib${LIB_SUFFIX}
|
||||
RUNTIME DESTINATION bin
|
||||
)
|
||||
|
||||
if (ENABLE_TESTS)
|
||||
|
@ -39,7 +39,9 @@ install(
|
||||
|
||||
install(
|
||||
TARGETS ${LIBNAME}
|
||||
DESTINATION lib
|
||||
LIBRARY DESTINATION lib${LIB_SUFFIX}
|
||||
ARCHIVE DESTINATION lib${LIB_SUFFIX}
|
||||
RUNTIME DESTINATION bin
|
||||
)
|
||||
|
||||
if (ENABLE_TESTS)
|
||||
|
@ -249,7 +249,9 @@ install(
|
||||
|
||||
install(
|
||||
TARGETS ${LIBNAME}
|
||||
DESTINATION lib
|
||||
LIBRARY DESTINATION lib${LIB_SUFFIX}
|
||||
ARCHIVE DESTINATION lib${LIB_SUFFIX}
|
||||
RUNTIME DESTINATION bin
|
||||
)
|
||||
|
||||
if (ENABLE_TESTS)
|
||||
|
@ -20,7 +20,9 @@ install(
|
||||
|
||||
install(
|
||||
TARGETS ${LIBNAME}
|
||||
DESTINATION lib
|
||||
LIBRARY DESTINATION lib${LIB_SUFFIX}
|
||||
ARCHIVE DESTINATION lib${LIB_SUFFIX}
|
||||
RUNTIME DESTINATION bin
|
||||
)
|
||||
|
||||
if (ENABLE_TESTS)
|
||||
|
@ -20,7 +20,9 @@ install(
|
||||
|
||||
install(
|
||||
TARGETS ${LIBNAME}
|
||||
DESTINATION lib
|
||||
LIBRARY DESTINATION lib${LIB_SUFFIX}
|
||||
ARCHIVE DESTINATION lib${LIB_SUFFIX}
|
||||
RUNTIME DESTINATION bin
|
||||
)
|
||||
|
||||
if (ENABLE_TESTS)
|
||||
|
@ -131,7 +131,9 @@ install(
|
||||
|
||||
install(
|
||||
TARGETS ${LIBNAME}
|
||||
DESTINATION lib
|
||||
LIBRARY DESTINATION lib${LIB_SUFFIX}
|
||||
ARCHIVE DESTINATION lib${LIB_SUFFIX}
|
||||
RUNTIME DESTINATION bin
|
||||
)
|
||||
|
||||
if (ENABLE_TESTS)
|
||||
|
@ -21,7 +21,9 @@ install(
|
||||
|
||||
install(
|
||||
TARGETS ${LIBNAME}
|
||||
DESTINATION lib
|
||||
LIBRARY DESTINATION lib${LIB_SUFFIX}
|
||||
ARCHIVE DESTINATION lib${LIB_SUFFIX}
|
||||
RUNTIME DESTINATION bin
|
||||
)
|
||||
|
||||
if (ENABLE_TESTS)
|
||||
|
@ -21,7 +21,9 @@ install(
|
||||
|
||||
install(
|
||||
TARGETS ${LIBNAME}
|
||||
DESTINATION lib
|
||||
LIBRARY DESTINATION lib${LIB_SUFFIX}
|
||||
ARCHIVE DESTINATION lib${LIB_SUFFIX}
|
||||
RUNTIME DESTINATION bin
|
||||
)
|
||||
|
||||
if (ENABLE_TESTS)
|
||||
|
@ -57,7 +57,9 @@ install(
|
||||
|
||||
install(
|
||||
TARGETS ${LIBNAME}
|
||||
DESTINATION lib
|
||||
LIBRARY DESTINATION lib${LIB_SUFFIX}
|
||||
ARCHIVE DESTINATION lib${LIB_SUFFIX}
|
||||
RUNTIME DESTINATION bin
|
||||
)
|
||||
|
||||
if (ENABLE_TESTS)
|
||||
|
@ -18,7 +18,9 @@ install(
|
||||
|
||||
install(
|
||||
TARGETS ${LIBNAME}
|
||||
DESTINATION lib
|
||||
LIBRARY DESTINATION lib${LIB_SUFFIX}
|
||||
ARCHIVE DESTINATION lib${LIB_SUFFIX}
|
||||
RUNTIME DESTINATION bin
|
||||
)
|
||||
|
||||
if (ENABLE_TESTS)
|
||||
|
@ -20,7 +20,9 @@ install(
|
||||
|
||||
install(
|
||||
TARGETS ${LIBNAME}
|
||||
DESTINATION lib
|
||||
LIBRARY DESTINATION lib${LIB_SUFFIX}
|
||||
ARCHIVE DESTINATION lib${LIB_SUFFIX}
|
||||
RUNTIME DESTINATION bin
|
||||
)
|
||||
|
||||
if (ENABLE_TESTS)
|
||||
|
Loading…
x
Reference in New Issue
Block a user