Build from Source
Requirements
In order to build csync, you need to install several components:
or
- gcrypt >= 1.4
Building
First, you need to configure the compilation, using CMake. Go inside the build directory and type
cmake -DCMAKE_BUILD_TYPE=Debug .. make
CMake standard options
Here is a list of the most interesting options provided out of the box by CMake.
- CMAKE_BUILD_TYPE: The type of build (can be Debug Release MinSizeRel? RelWithDebInfo?)
- CMAKE_INSTALL_PREFIX: The prefix to use when running make install (Default to /usr/local on GNU/Linux and MacOS X)
- CMAKE_C_COMPILER: The path to the C compiler
- CMAKE_CXX_COMPILER: The path to the C++ compiler
CMake options defined for csync
Options are defined in the following files:
- DefineOptions?.cmake
They can be changed with the -D option:
cmake -DCMAKE_BUILD_TYPE=Debug -DWITH_SERVER=ON ..
Running
The libssh commandline client for testing can be found in the build directory.
cd build ./samplessh localhost
Installation
make install will install the application to the destination defined by the CMAKE_INSTALL_PREFIX option.
