diff options
author | Dominik Schmidt <dev@dominik-schmidt.de> | 2012-04-26 19:16:34 +0400 |
---|---|---|
committer | Dominik Schmidt <dev@dominik-schmidt.de> | 2012-04-26 19:16:34 +0400 |
commit | f96fa3dbeb4064160cdcd829ae1bf221486d0048 (patch) | |
tree | 75f56d052f65726cc737f23e20da10cd60809ae9 /CPackOptions.cmake.in | |
parent | f02a01871158e2d4ba7d62a73432fa5aeda940fb (diff) |
win: allow building the installer from local csync build dir and from installed csync as well
Diffstat (limited to 'CPackOptions.cmake.in')
-rw-r--r-- | CPackOptions.cmake.in | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/CPackOptions.cmake.in b/CPackOptions.cmake.in index cc9fa477c..3145ce5cd 100644 --- a/CPackOptions.cmake.in +++ b/CPackOptions.cmake.in @@ -10,7 +10,15 @@ endif(CPACK_GENERATOR MATCHES "NSIS") set( CMAKE_SOURCE_DIR @CMAKE_SOURCE_DIR@ ) set( CMAKE_BINARY_DIR @CMAKE_BINARY_DIR@ ) + set( CSYNC_BINARY_DIR @CSYNC_BINARY_DIR@ ) -if(NOT CSYNC_BINARY_DIR) - message(FATAL_ERROR "You need to make CSYNC_BINARY_DIR point to the csync build dir") +set( MINGW_ROOT @CMAKE_FIND_ROOT_PATH@ ) +if(CSYNC_BINARY_DIR) + set( CSYNC_LIBRARY_DIR "${CSYNC_BINARY_DIR}/src" ) + set( CSYNC_PLUGIN_DIR "${CSYNC_BINARY_DIR}/modules" ) + set( CSYNC_CONFIG_DIR "${CSYNC_BINARY_DIR}/config" ) +else() + set( CSYNC_LIBRARY_DIR "${MINGW_ROOT}/bin" ) + set( CSYNC_PLUGIN_DIR "${MINGW_ROOT}/bin/csync-0" ) #FIXME: whatever it is + set( CSYNC_CONFIG_DIR "${MINGW_ROOT}/etc/csync" ) endif() |