2014-11-19 02:23:05 +00:00
|
|
|
project(gwenview)
|
|
|
|
|
2016-04-06 12:26:19 +00:00
|
|
|
if(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR})
|
2020-02-10 21:58:43 +00:00
|
|
|
find_package(KDE4 4.19.0 REQUIRED)
|
2016-04-06 12:26:19 +00:00
|
|
|
include(KDE4Defaults)
|
|
|
|
include_directories(${KDE4_INCLUDES})
|
|
|
|
add_definitions(${QT_DEFINITIONS} ${KDE4_DEFINITIONS})
|
|
|
|
endif()
|
|
|
|
|
2014-11-19 02:23:05 +00:00
|
|
|
## Dependencies
|
2020-02-09 17:18:16 +00:00
|
|
|
find_package(Exiv2 0.19)
|
2020-02-20 23:33:47 +02:00
|
|
|
set_package_properties(Exiv2 PROPERTIES
|
|
|
|
DESCRIPTION "Image Tag reader"
|
|
|
|
URL "http://www.exiv2.org"
|
|
|
|
PURPOSE "Support for image metadata"
|
|
|
|
TYPE REQUIRED
|
|
|
|
)
|
2014-11-19 02:23:05 +00:00
|
|
|
|
|
|
|
macro_optional_find_package(Kipi)
|
2020-02-20 23:33:47 +02:00
|
|
|
set_package_properties(Kipi PROPERTIES
|
|
|
|
URL "https://github.com/KDE/kipi-plugins"
|
|
|
|
PURPOSE "Provides various image manipulation and export features"
|
|
|
|
)
|
2014-11-19 02:23:05 +00:00
|
|
|
|
|
|
|
find_package(LibKonq)
|
2020-02-20 23:33:47 +02:00
|
|
|
set_package_properties(LibKonq PROPERTIES
|
|
|
|
URL "http://fluxer.github.io/katana/"
|
|
|
|
PURPOSE "Standard file management features"
|
|
|
|
TYPE REQUIRED
|
|
|
|
)
|
2014-11-19 02:23:05 +00:00
|
|
|
|
|
|
|
## Global settings
|
|
|
|
|
|
|
|
include_directories(
|
|
|
|
${QDBUS_INCLUDE_DIRS}
|
|
|
|
${EXIV2_INCLUDE_DIR}
|
|
|
|
${KDCRAW_INCLUDE_DIR}
|
2016-04-06 12:26:19 +00:00
|
|
|
)
|
2014-11-19 02:23:05 +00:00
|
|
|
|
2019-05-15 00:12:39 +00:00
|
|
|
add_definitions(
|
|
|
|
${EXIV2_DEFINITIONS}
|
|
|
|
${KDE4_ENABLE_EXCEPTIONS}
|
|
|
|
)
|
|
|
|
|
2014-11-19 02:23:05 +00:00
|
|
|
## dirs to build
|
|
|
|
add_subdirectory(lib)
|
|
|
|
add_subdirectory(app)
|
|
|
|
add_subdirectory(importer)
|
|
|
|
add_subdirectory(part)
|
2015-09-02 02:13:50 +03:00
|
|
|
if(ENABLE_TESTING)
|
|
|
|
add_subdirectory(tests)
|
|
|
|
endif()
|
2014-11-19 02:23:05 +00:00
|
|
|
add_subdirectory(icons)
|
|
|
|
add_subdirectory(images)
|
|
|
|
add_subdirectory(cursors)
|
|
|
|
add_subdirectory(color-schemes)
|
|
|
|
|
2020-02-20 23:33:47 +02:00
|
|
|
configure_file(
|
|
|
|
config-gwenview.h.cmake
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/config-gwenview.h
|
|
|
|
)
|