mirror of
https://bitbucket.org/smil3y/kde-extraapps.git
synced 2025-02-24 19:02:53 +00:00

TODO from https://github.com/fluxer/katana/issues/7. kget and libktorrent cannot be build separately because libktorrent depends on boost (or miniboost which is bundled) and kget depends on libktorrent. syndication include paths were adjusted to build from the top-level directory since it was used not only by akregator, that is no longer the case and it should probably be moved to akregator sub-directory but that will be decided in the future. Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
73 lines
2.3 KiB
CMake
73 lines
2.3 KiB
CMake
PROJECT(libksane)
|
|
|
|
if(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR})
|
|
find_package(KDE4 4.19.0 REQUIRED)
|
|
include(KDE4Defaults)
|
|
include_directories(${KDE4_INCLUDES})
|
|
add_definitions(${QT_DEFINITIONS} ${KDE4_DEFINITIONS})
|
|
endif()
|
|
|
|
# Check if sane API is available.
|
|
FIND_PACKAGE(Sane REQUIRED)
|
|
macro_log_feature(SANE_FOUND "SANE development toolkit"
|
|
"Scanner Access Now Easy (SANE) development package"
|
|
"http://www.sane-project.org"
|
|
TRUE "" "Needed by libksane"
|
|
)
|
|
|
|
INCLUDE_DIRECTORIES(
|
|
${CMAKE_SOURCE_DIR}
|
|
${CMAKE_BINARY_DIR}
|
|
${CMAKE_CURRENT_BINARY_DIR}/libksane
|
|
)
|
|
|
|
# =======================================================
|
|
# Information to update before to release this library.
|
|
|
|
# Library version history:
|
|
# API ABI
|
|
# 0.1.0 => 0.1.0
|
|
# 0.1.1 => 0.1.1
|
|
# 0.2.0 => 0.2.0
|
|
|
|
# Library API version
|
|
SET(KSANE_LIB_MAJOR_VERSION "0")
|
|
SET(KSANE_LIB_MINOR_VERSION "3")
|
|
SET(KSANE_LIB_PATCH_VERSION "0")
|
|
|
|
# Suffix to add at end of version string. Usual values are:
|
|
# "-git" : alpha code unstable from git. Do not use in production
|
|
# "-beta1" : beta1 release.
|
|
# "-beta2" : beta2 release.
|
|
# "-beta3" : beta3 release.
|
|
# "-rc" : release candidate.
|
|
# "" : final relase. Can be used in production.
|
|
SET(KSANE_LIB_SUFFIX_VERSION "")
|
|
|
|
# Library ABI version used by linker.
|
|
# For details : http://www.gnu.org/software/libtool/manual/libtool.html#Updating-version-info
|
|
SET(KSANE_LIB_SO_CUR_VERSION "0")
|
|
SET(KSANE_LIB_SO_REV_VERSION "2")
|
|
SET(KSANE_LIB_SO_AGE_VERSION "0")
|
|
|
|
# =======================================================
|
|
# Set env. variables accordinly.
|
|
|
|
SET(KSANE_LIB_VERSION_STRING "${KSANE_LIB_MAJOR_VERSION}.${KSANE_LIB_MINOR_VERSION}.${KSANE_LIB_PATCH_VERSION}${KSANE_LIB_SUFFIX_VERSION}")
|
|
SET(KSANE_LIB_VERSION_ID "0x0${KSANE_LIB_MAJOR_VERSION}0${KSANE_LIB_MINOR_VERSION}0${KSANE_LIB_PATCH_VERSION}")
|
|
|
|
SET(KSANE_LIB_SO_VERSION_STRING "${KSANE_LIB_SO_CUR_VERSION}.${KSANE_LIB_SO_REV_VERSION}.${KSANE_LIB_SO_AGE_VERSION}")
|
|
|
|
# =======================================================
|
|
|
|
ADD_DEFINITIONS(-DKDE_DEFAULT_DEBUG_AREA=51004)
|
|
|
|
CONFIGURE_FILE(
|
|
${CMAKE_CURRENT_SOURCE_DIR}/libksane/version.h.cmake.in
|
|
${CMAKE_CURRENT_BINARY_DIR}/libksane/version.h
|
|
)
|
|
|
|
# =======================================================
|
|
|
|
ADD_SUBDIRECTORY(libksane)
|
|
ADD_SUBDIRECTORY(ksaneplugin)
|