# If the source code was changed, but there were no interface changes:
# Increment REVISION.
set(LIBRARY_VERSION"4.3.0")
set(LIBRARY_SOVERSION"4")
# where to look first for cmake modules, before ${CMAKE_ROOT}/Modules/ is checked
set(CMAKE_MODULE_PATH
${CMAKE_SOURCE_DIR}/cmake/Modules
)
# add definitions
include(DefineCMakeDefaults)
include(DefinePlatformDefaults)
include(DefineCompilerFlags)
include(DefineInstallationPaths)
include(DefineOptions.cmake)
include(CPackConfig.cmake)
# disallow in-source build
include(MacroEnsureOutOfSourceBuild)
macro_ensure_out_of_source_build("${PROJECT_NAME} requires an out of source build. Please create a separate build directory and run 'cmake /path/to/${PROJECT_NAME} [options]' there.")
# add macros
include(MacroAddPlugin)
include(MacroCopyFile)
# search for libraries
if(WITH_ZLIB)
find_package(ZLIBREQUIRED)
endif(WITH_ZLIB)
if(WITH_GCRYPT)
find_package(GCrypt1.5.0REQUIRED)
if(NOTGCRYPT_FOUND)
message(FATAL_ERROR"Could not find GCrypt")
endif(NOTGCRYPT_FOUND)
else(WITH_GCRYPT)
find_package(OpenSSL)
if(NOTOPENSSL_FOUND)
find_package(GCrypt)
if(NOTGCRYPT_FOUND)
message(FATAL_ERROR"Could not find OpenSSL or GCrypt")