diff options
author | Jocelyn Turcotte <jturcotte@woboq.com> | 2015-02-04 15:15:06 +0300 |
---|---|---|
committer | Jocelyn Turcotte <turcotte.j@gmail.com> | 2015-02-04 17:00:22 +0300 |
commit | 1ac523ec01be0b68063564769e07f4db3b92f1e7 (patch) | |
tree | d1fe9be54dada83f58dcbbd04a94a2069ae4205c /csync | |
parent | 43a51c1befed05bcf546ca9ea826c8dc2d0e3818 (diff) |
Output libocsync and libowncloudsync in the bin directory
Windows finds DLLs using PATH or the directory of the process'
executable. By outputing those dependend DLLs together with
owncloud.exe, the developer only need to have OpenSSL's bin
and the qtkeychain build directory in his PATH to let the
dynamic linker find them.
As the documentation of RUNTIME_OUTPUT_DIRECTORY points out,
this only affects windows as other platforms don't consider
libraries as runtime targets.
Diffstat (limited to 'csync')
-rw-r--r-- | csync/CMakeLists.txt | 1 | ||||
-rw-r--r-- | csync/src/CMakeLists.txt | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/csync/CMakeLists.txt b/csync/CMakeLists.txt index eeecc38dc..49613cab0 100644 --- a/csync/CMakeLists.txt +++ b/csync/CMakeLists.txt @@ -34,6 +34,7 @@ include(ConfigureChecks.cmake) set(SOURCE_DIR ${CMAKE_SOURCE_DIR}) +set(BIN_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin") include_directories(${CMAKE_CURRENT_BINARY_DIR}) diff --git a/csync/src/CMakeLists.txt b/csync/src/CMakeLists.txt index 9b6227ebc..2b59c5685 100644 --- a/csync/src/CMakeLists.txt +++ b/csync/src/CMakeLists.txt @@ -110,6 +110,8 @@ set_target_properties( ${LIBRARY_VERSION} SOVERSION ${LIBRARY_SOVERSION} + RUNTIME_OUTPUT_DIRECTORY + ${BIN_OUTPUT_DIRECTORY} ) if(BUILD_OWNCLOUD_OSX_BUNDLE) INSTALL( |