Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/csync
diff options
context:
space:
mode:
authorJocelyn Turcotte <jturcotte@woboq.com>2015-02-04 15:15:06 +0300
committerJocelyn Turcotte <turcotte.j@gmail.com>2015-02-04 17:00:22 +0300
commit1ac523ec01be0b68063564769e07f4db3b92f1e7 (patch)
treed1fe9be54dada83f58dcbbd04a94a2069ae4205c /csync
parent43a51c1befed05bcf546ca9ea826c8dc2d0e3818 (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.txt1
-rw-r--r--csync/src/CMakeLists.txt2
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(