cmake: Fix make install on win32 platform.

Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
Klaas Freitag 2013-07-17 14:38:22 +02:00 committed by Andreas Schneider
parent ba2963b388
commit 0c3becfdb6
3 changed files with 17 additions and 9 deletions

View file

@ -28,8 +28,6 @@ include(DefineOptions.cmake)
include(CPackConfig.cmake)
include(DefineInstallationPaths)
# install .dlls to bin/
set(BIN_INSTALL_DIR "bin" CACHE PATH "-")
# disallow in-source build
include(MacroEnsureOutOfSourceBuild)

View file

@ -103,5 +103,8 @@ if (WIN32)
set(ICON_INSTALL_DIR "." CACHE PATH "-")
set(SOUND_INSTALL_DIR "." CACHE PATH "-")
set(LOCALE_INSTALL_DIR "lang" CACHE PATH "-")
set(SYSCONF_INSTALL_DIR "." CACHE PATH "-")
set(MAN_INSTALL_DIR "." CACHE PATH "-")
set(SHARE_INSTALL_PREFIX "." CACHE PATH "-")
endif (WIN32)

View file

@ -19,16 +19,23 @@ add_custom_target(userguide
${CMAKE_CURRENT_SOURCE_DIR}
)
if (UNIX)
install(
FILES
csync.1
DESTINATION
${MAN_INSTALL_DIR}/man1
)
set(DOC_INSTALL_PATH ${SHARE_INSTALL_PREFIX}/doc/csync)
endif(UNIX)
if (WIN32)
set(DOC_INSTALL_PATH ${SHARE_INSTALL_PREFIX}/doc)
endif (WIN32)
install(
DIRECTORY
userguide
DESTINATION
${SHARE_INSTALL_PREFIX}/doc/csync
${DOC_INSTALL_PATH}
)