diff options
Diffstat (limited to 'libkipi/libkipi')
-rw-r--r-- | libkipi/libkipi/CMakeLists.txt | 91 | ||||
-rw-r--r-- | libkipi/libkipi/libkipi_export.h.cmake | 37 |
2 files changed, 128 insertions, 0 deletions
diff --git a/libkipi/libkipi/CMakeLists.txt b/libkipi/libkipi/CMakeLists.txt new file mode 100644 index 0000000..c26e24a --- /dev/null +++ b/libkipi/libkipi/CMakeLists.txt @@ -0,0 +1,91 @@ +include_directories( + ${CMAKE_BINARY_DIR} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR} + ${TDE_INCLUDE_DIR} + ${TQT_INCLUDE_DIRS} + ${CMAKE_SOURCE_DIR}/libkipi + ${CMAKE_BINARY_DIR}/libkipi +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${TDE_LIB_DIR} +) + + +##### kipi (shared) + +tde_add_library( kipi SHARED AUTOMOC + + SOURCES + interface.cpp + plugin.cpp + pluginloader.cpp + KDStream.cpp + imageinfo.cpp + imagecollection.cpp + imageinfoshared.cpp + imagecollectionshared.cpp + imagedialog.cpp + uploadwidget.cpp + batchprogressdialog.cpp + imagecollectionselector.cpp + LINK + tdecore-shared + tdeio-shared + tdeui-shared + + VERSION 0.1.1 + + DESTINATION ${LIB_INSTALL_DIR} +) + + +##### headers + +configure_file( libkipi_export.h.cmake libkipi_export.h @ONLY ) + +install( + FILES ${CMAKE_CURRENT_BINARY_DIR}/libkipi_export.h + DESTINATION ${INCLUDE_INSTALL_DIR}/${PROJECT_NAME} +) + +install( + FILES + interface.h + plugin.h + pluginloader.h + imageinfo.h + imagecollection.h + imageinfoshared.h + imagecollectionshared.h + imagedialog.h + uploadwidget.h + batchprogressdialog.h + imagecollectionselector.h + version.h + + DESTINATION ${INCLUDE_INSTALL_DIR}/${PROJECT_NAME} +) + + +##### icons + +tde_install_icons( kipi ) + + +##### other data + +install( + FILES + kipi-plugins_logo.png + banner_left.png + + DESTINATION ${DATA_INSTALL_DIR}/kipi/data +) + +install( + FILES kipiplugin.desktop + DESTINATION ${SERVICETYPES_INSTALL_DIR} +) diff --git a/libkipi/libkipi/libkipi_export.h.cmake b/libkipi/libkipi/libkipi_export.h.cmake new file mode 100644 index 0000000..20e1553 --- /dev/null +++ b/libkipi/libkipi/libkipi_export.h.cmake @@ -0,0 +1,37 @@ +/* + This file is part of libkipi project + Copyright (c) 2005 Laurent Montel <montel@kde.org> + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library 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 + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Steet, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#ifndef _LIBKIPI_EXPORT_H +#define _LIBKIPI_EXPORT_H + +#cmakedefine KDEMACROS_USABLE @KDEMACROS_USABLE@ + +#ifdef KDEMACROS_USABLE +#include <kdemacros.h> +#endif + +#ifdef KDE_EXPORT +#define LIBKIPI_EXPORT KDE_EXPORT +#else +#define LIBKIPI_EXPORT +#endif + +#endif /* _LIBKIPI_EXPORT_H */ + |