mirror of
https://bitbucket.org/smil3y/kde-extraapps.git
synced 2025-02-23 18:32:53 +00:00
63 lines
1.4 KiB
CMake
63 lines
1.4 KiB
CMake
project(gwenview)
|
|
|
|
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()
|
|
|
|
## Dependencies
|
|
find_package(Exiv2 0.19)
|
|
set_package_properties(Exiv2 PROPERTIES
|
|
DESCRIPTION "Image Tag reader"
|
|
URL "http://www.exiv2.org"
|
|
PURPOSE "Support for image metadata"
|
|
TYPE REQUIRED
|
|
)
|
|
|
|
macro_optional_find_package(Kipi)
|
|
set_package_properties(Kipi PROPERTIES
|
|
URL "https://github.com/KDE/kipi-plugins"
|
|
PURPOSE "Provides various image manipulation and export features"
|
|
)
|
|
|
|
find_package(LibKonq)
|
|
set_package_properties(LibKonq PROPERTIES
|
|
URL "http://fluxer.github.io/katana/"
|
|
PURPOSE "Standard file management features"
|
|
TYPE REQUIRED
|
|
)
|
|
|
|
## Global settings
|
|
|
|
include_directories(
|
|
${QDBUS_INCLUDE_DIRS}
|
|
${EXIV2_INCLUDE_DIR}
|
|
# for gwenview_export.h
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
|
${CMAKE_CURRENT_BINARY_DIR}/lib
|
|
)
|
|
|
|
add_definitions(
|
|
${EXIV2_DEFINITIONS}
|
|
${KDE4_ENABLE_EXCEPTIONS}
|
|
)
|
|
|
|
## dirs to build
|
|
add_subdirectory(lib)
|
|
add_subdirectory(app)
|
|
add_subdirectory(importer)
|
|
add_subdirectory(part)
|
|
if(ENABLE_TESTING)
|
|
add_subdirectory(tests)
|
|
endif()
|
|
add_subdirectory(icons)
|
|
add_subdirectory(images)
|
|
add_subdirectory(cursors)
|
|
add_subdirectory(color-schemes)
|
|
|
|
configure_file(
|
|
config-gwenview.h.cmake
|
|
${CMAKE_CURRENT_BINARY_DIR}/config-gwenview.h
|
|
)
|