2015-06-15 21:15:22 +03:00
|
|
|
# ===========================================================
|
|
|
|
#
|
|
|
|
# This file is a part of digiKam project
|
|
|
|
# <a href="http://www.digikam.org">http://www.digikam.org</a>
|
|
|
|
#
|
|
|
|
# @date 2006-09-15
|
|
|
|
# @brief Exiv2 library interface for KDE
|
|
|
|
#
|
|
|
|
# @author Copyright (C) 2006-2014 by Gilles Caulier
|
|
|
|
# <a href="mailto:caulier dot gilles at gmail dot com">caulier dot gilles at gmail dot com</a>
|
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it
|
|
|
|
# and/or modify it under the terms of the GNU General
|
|
|
|
# Public License as published by the Free Software Foundation;
|
|
|
|
# either version 2, or (at your option)
|
|
|
|
# any later version.
|
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# ============================================================
|
|
|
|
|
2015-11-01 15:28:30 +02:00
|
|
|
project(libkexiv2)
|
2015-06-15 21:15:22 +03:00
|
|
|
|
2015-11-01 15:28:30 +02:00
|
|
|
add_definitions(
|
2015-10-29 17:52:26 +02:00
|
|
|
${QT_QTDBUS_DEFINITIONS}
|
|
|
|
-DKDE_DEFAULT_DEBUG_AREA=51003
|
|
|
|
)
|
2015-11-01 15:28:30 +02:00
|
|
|
|
|
|
|
include_directories(
|
2015-10-29 17:52:26 +02:00
|
|
|
${QDBUS_INCLUDE_DIRS}
|
|
|
|
${CMAKE_SOURCE_DIR}
|
|
|
|
${CMAKE_BINARY_DIR}
|
2016-05-03 01:13:15 +00:00
|
|
|
# for the export header
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/libkexiv2
|
2015-10-29 17:52:26 +02:00
|
|
|
${KDE4_KDECORE_INCLUDES}
|
|
|
|
${KDE4_KDEUI_INCLUDES}
|
|
|
|
)
|
2015-06-15 21:15:22 +03:00
|
|
|
|
|
|
|
# =======================================================
|
|
|
|
# Set env. variables accordinly.
|
|
|
|
|
2015-11-01 15:28:30 +02:00
|
|
|
set(KEXIV2_LIB_VERSION_STRING "${KDE_VERSION_MAJOR}.${KDE_VERSION_MINOR}.${KDE_VERSION_RELEASE}")
|
|
|
|
set(KEXIV2_LIB_VERSION_ID "0x0${KDE_VERSION_MAJOR}0${KDE_VERSION_MINOR}0${KDE_VERSION_RELEASE}")
|
|
|
|
set(KEXIV2_LIB_SO_VERSION_STRING "${KDE_VERSION_MAJOR}.${KDE_VERSION_MINOR}.${KDE_VERSION_RELEASE}")
|
2015-06-15 21:15:22 +03:00
|
|
|
|
|
|
|
# =======================================================
|
|
|
|
|
2015-11-01 15:28:30 +02:00
|
|
|
add_subdirectory(libkexiv2)
|
2015-06-15 21:15:22 +03:00
|
|
|
|
2015-10-29 17:52:26 +02:00
|
|
|
if(ENABLE_TESTING)
|
|
|
|
add_subdirectory(tests)
|
|
|
|
endif()
|
2015-06-15 21:15:22 +03:00
|
|
|
|
2015-11-01 15:28:30 +02:00
|
|
|
configure_file(
|
2015-10-29 17:52:26 +02:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/libkexiv2.pc.cmake
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/libkexiv2.pc
|
|
|
|
)
|
2015-11-01 15:28:30 +02:00
|
|
|
|
|
|
|
install(
|
2015-10-29 17:52:26 +02:00
|
|
|
FILES ${CMAKE_CURRENT_BINARY_DIR}/libkexiv2.pc
|
2021-02-26 20:15:41 +02:00
|
|
|
DESTINATION ${KDE4_LIB_INSTALL_DIR}/pkgconfig
|
2015-10-29 17:52:26 +02:00
|
|
|
)
|
2015-06-15 21:15:22 +03:00
|
|
|
|