... | ... | @@ -2,4 +2,119 @@ |
|
|
|
|
|
## ENABLE_DEVELOPER_BUILD
|
|
|
|
|
|
Values: ON OFF (default) |
|
|
Values:
|
|
|
* ON
|
|
|
* OFF (default)
|
|
|
|
|
|
When set to ON Kadu will be compiled with debug messages switched on. Also -Werror=all flag will be passed to GCC and all GCC warnings will be treated as compilation errors. Available since 0.9.2. Since 0.12.0 it changes default CMAKE_BUILD_TYPE to Debug.
|
|
|
|
|
|
## CMAKE_BUILD_TYPE
|
|
|
|
|
|
Values:
|
|
|
* Debug (default if ENABLE_DEVELOPER_BUILD is set)
|
|
|
* Release
|
|
|
* RelWithDebInfo (default if ENABLE_DEVELOPER_BUILD is not set)
|
|
|
|
|
|
Build type. Debug is recommended for debugging. Release and RelWithDebInfo give best performance. In 0.9.x, 0.10.x, and 0.11.x the default was Debug.
|
|
|
|
|
|
## CMAKE_INSTALL_PREFIX
|
|
|
|
|
|
Values:
|
|
|
* /usr/local (default)
|
|
|
* custom path
|
|
|
|
|
|
Installation path.
|
|
|
|
|
|
## CMAKE_MODULE_PATH
|
|
|
|
|
|
Values:
|
|
|
* empty (default)
|
|
|
* custom path
|
|
|
|
|
|
Additional path to search for CMake modules. May be needed to find FindKadu module when building plugins outside of Kadu core sources.
|
|
|
|
|
|
## INSTALL_SDK
|
|
|
|
|
|
Values:
|
|
|
* ON (default)
|
|
|
* OFF
|
|
|
|
|
|
Installs FindKadu.cmake, C++ Kadu headers, and some scripts for Kadu SDK. Available since 0.11.0.
|
|
|
|
|
|
# Core
|
|
|
|
|
|
## BUILD_PLUGINS
|
|
|
|
|
|
Values:
|
|
|
* ON (default)
|
|
|
* OFF
|
|
|
|
|
|
When set to OFF Kadu will not compile any plugins. Available since 0.10.0
|
|
|
|
|
|
## COMPILE_PLUGINS
|
|
|
|
|
|
Values:
|
|
|
* empty (default)
|
|
|
* custom comma- or whitespace-separated list
|
|
|
|
|
|
Plugins to be compiled. No other plugins but those specified here will be compiled. When empty, default (i.e., almost all) plugins will be compiled and this variable will be filled with all plugins for future CMake runs, so individual plugins can be easily removed from the list. Available since 0.11.0.
|
|
|
|
|
|
## NETWORK_IMPLEMENTATION
|
|
|
|
|
|
Values:
|
|
|
* ntrack (default if available)
|
|
|
* Qt (default if NTrack not available)
|
|
|
* dummy
|
|
|
|
|
|
Selects implementation of network-aware classes.
|
|
|
* ntrack - uses ntrack with Qt bindings (recommended)
|
|
|
* Qt - uses QNetworkConfigurationManager, on Linux works only with NetworkManager
|
|
|
* dummy - for Kadu network is always online, do not use
|
|
|
Available since 0.10.0.
|
|
|
|
|
|
# Plugins
|
|
|
|
|
|
## KADU_SEARCH_DIRS
|
|
|
|
|
|
Values:
|
|
|
* empty (default)
|
|
|
* custom path
|
|
|
|
|
|
Additional path to search for Kadu SDK headers. May be needed to find Kadu SDK headers when building plugins outside of Kadu core sources. Available since 0.10.0.
|
|
|
|
|
|
## WITH_ASPELL
|
|
|
|
|
|
Values:
|
|
|
* ON
|
|
|
* OFF (default)
|
|
|
|
|
|
If ON, force Aspell usage in spellchecker. If no engine is forced, Aspell is used if detected, otherwise Enchant.
|
|
|
|
|
|
## WITH_ENCHANT
|
|
|
|
|
|
Values:
|
|
|
* ON
|
|
|
* OFF (default)
|
|
|
|
|
|
If ON, force Enchant usage in spellchecker. If no engine is forced, Aspell is used if detected, otherwise Enchant.
|
|
|
|
|
|
# Examples
|
|
|
|
|
|
## Configuring Kadu
|
|
|
|
|
|
cd kadu
|
|
|
mkdir build
|
|
|
cd build
|
|
|
cmake -DCMAKE_INSTALL_PREFIX=${HOME}/kadu-install \
|
|
|
-DCOMPILE_PLUGINS=gadu_protocol,jabber_protocol \
|
|
|
..
|
|
|
|
|
|
## Configuring plugin
|
|
|
|
|
|
cd lednotify
|
|
|
mkdir build
|
|
|
cd build
|
|
|
cmake -DCMAKE_MODULE_PATH=${HOME}/kadu-install/share/cmake/Modules \
|
|
|
-DKADU_SEARCH_DIRS=${HOME}/kadu-install \
|
|
|
-DCMAKE_INSTALL_PREFIX=${HOME}/kadu-install \
|
|
|
.. |