2015-06-15 21:15:22 +03:00
|
|
|
# ===========================================================
|
|
|
|
#
|
2015-09-01 01:05:33 +03:00
|
|
|
# This file is was part of digiKam project
|
2015-06-15 21:15:22 +03:00
|
|
|
# <a href="http://www.digikam.org">http://www.digikam.org</a>
|
|
|
|
#
|
|
|
|
# @date 2006-12-09
|
|
|
|
# @brief a tread-safe libraw C++ program interface for KDE
|
|
|
|
#
|
|
|
|
# @author Copyright (C) 2006-2013 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.
|
|
|
|
#
|
|
|
|
# ============================================================
|
|
|
|
|
2016-04-13 07:37:25 +00:00
|
|
|
if("${LibRaw_VERSION_STRING}" VERSION_LESS "0.17.0")
|
|
|
|
message(STATUS "Building kdcraw with exceptions.")
|
|
|
|
add_definitions(${KDE4_ENABLE_EXCEPTIONS})
|
|
|
|
endif()
|
2015-06-15 21:15:22 +03:00
|
|
|
|
2015-09-01 01:05:33 +03:00
|
|
|
configure_file(
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/version.h.cmake
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/version.h
|
|
|
|
)
|
2015-06-15 21:15:22 +03:00
|
|
|
|
2015-09-01 01:05:33 +03:00
|
|
|
set(kdcraw_LIB_SRCS
|
2015-08-31 03:59:14 +03:00
|
|
|
kdcraw.cpp
|
|
|
|
kdcraw_p.cpp
|
|
|
|
dcrawsettingswidget.cpp
|
|
|
|
dcrawinfocontainer.cpp
|
|
|
|
rawdecodingsettings.cpp
|
|
|
|
rcombobox.cpp
|
|
|
|
rnuminput.cpp
|
|
|
|
rexpanderbox.cpp
|
|
|
|
squeezedcombobox.cpp
|
|
|
|
)
|
2015-06-15 21:15:22 +03:00
|
|
|
|
2015-09-01 01:05:33 +03:00
|
|
|
add_library(kdcraw ${LIBRARY_TYPE} ${kdcraw_LIB_SRCS})
|
2015-06-15 21:15:22 +03:00
|
|
|
|
2016-09-03 00:05:54 +00:00
|
|
|
target_link_libraries(kdcraw
|
2015-08-31 03:59:14 +03:00
|
|
|
${KDE4_KDEUI_LIBS}
|
|
|
|
${KDE4_KIO_LIBS}
|
|
|
|
${LibRaw_r_LIBRARIES}
|
|
|
|
)
|
2015-06-15 21:15:22 +03:00
|
|
|
|
2015-09-01 01:05:33 +03:00
|
|
|
set_target_properties(kdcraw PROPERTIES
|
|
|
|
VERSION ${GENERIC_LIB_VERSION}
|
|
|
|
SOVERSION ${GENERIC_LIB_SOVERSION}
|
|
|
|
)
|
2015-06-15 21:15:22 +03:00
|
|
|
|
2015-10-31 12:01:45 +02:00
|
|
|
install(
|
|
|
|
TARGETS kdcraw
|
|
|
|
EXPORT kdelibsLibraryTargets
|
|
|
|
${INSTALL_TARGETS_DEFAULT_ARGS}
|
|
|
|
)
|
2015-06-15 21:15:22 +03:00
|
|
|
|
2016-04-27 18:43:11 +00:00
|
|
|
generate_export_header(kdcraw)
|
|
|
|
|
2015-10-31 12:01:45 +02:00
|
|
|
install(
|
|
|
|
FILES
|
2015-08-31 03:59:14 +03:00
|
|
|
rawdecodingsettings.h
|
|
|
|
kdcraw.h
|
|
|
|
dcrawsettingswidget.h
|
|
|
|
rnuminput.h
|
|
|
|
rcombobox.h
|
|
|
|
rexpanderbox.h
|
|
|
|
squeezedcombobox.h
|
|
|
|
dcrawinfocontainer.h
|
|
|
|
rawfiles.h
|
2016-04-27 21:48:43 +00:00
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/kdcraw_export.h
|
2015-08-31 03:59:14 +03:00
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/version.h
|
|
|
|
DESTINATION ${INCLUDE_INSTALL_DIR}/libkdcraw
|
|
|
|
COMPONENT Devel
|
|
|
|
)
|