Browse Source

Put ocsync to a private library - WIP

Klaas Freitag 12 years ago
parent
commit
aa4e90acfc
2 changed files with 6 additions and 2 deletions
  1. 4 0
      cmake/modules/DefineInstallationPaths.cmake
  2. 2 2
      csync/src/CMakeLists.txt

+ 4 - 0
cmake/modules/DefineInstallationPaths.cmake

@@ -33,6 +33,10 @@ if (UNIX)
     "${EXEC_INSTALL_PREFIX}/libexec"
     CACHE PATH "The subdirectory relative to the install prefix where libraries will be installed (default is prefix/libexec)"
   )
+  SET(LIB_PRIVATE_INSTALL_DIR
+	  "${LIB_INSTALL_DIR}/${APPLICATION_SHORT_NAME}"
+	  CACHE PATH "The subdirectory relative to the install prefix where private libs are installed"
+	  )
   SET(PLUGIN_INSTALL_DIR
     "${LIB_INSTALL_DIR}/${APPLICATION_SHORT_NAME}"
     CACHE PATH "The subdirectory relative to the install prefix where plugins will be installed (default is prefix/lib/${APPLICATION_SHORT_NAME})"

+ 2 - 2
csync/src/CMakeLists.txt

@@ -116,9 +116,9 @@ INSTALL(
   TARGETS
     ${CSYNC_LIBRARY}
   LIBRARY DESTINATION
-    ${LIB_INSTALL_DIR}
+    ${PLUGIN_INSTALL_DIR}
   ARCHIVE DESTINATION
-    ${LIB_INSTALL_DIR}
+    ${PLUGIN_INSTALL_DIR}
   RUNTIME DESTINATION
     ${BIN_INSTALL_DIR}
 )