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})
|
2022-10-03 20:32:24 +03:00
|
|
|
include(GenerateExportHeader)
|
|
|
|
include(FeatureSummary)
|
|
|
|
|
2022-05-12 16:39:18 +03:00
|
|
|
find_package(KDE4 4.22.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
|
2022-05-19 20:07:45 +03:00
|
|
|
set(CMAKE_THREAD_PREFER_PTHREAD TRUE)
|
|
|
|
find_package(Threads)
|
|
|
|
set_package_properties(Threads PROPERTIES
|
|
|
|
PURPOSE "Required for asynchorouns functions and methods execution"
|
|
|
|
DESCRIPTION "Platform dependent threads implementation"
|
|
|
|
URL ""
|
|
|
|
TYPE REQUIRED
|
|
|
|
)
|
|
|
|
|
2014-11-19 02:23:05 +00:00
|
|
|
find_package(LibKonq)
|
2020-02-20 23:33:47 +02:00
|
|
|
set_package_properties(LibKonq PROPERTIES
|
2022-09-24 05:59:56 +03:00
|
|
|
URL "https://osdn.net/projects/kde/"
|
2020-02-20 23:33:47 +02:00
|
|
|
PURPOSE "Standard file management features"
|
|
|
|
TYPE REQUIRED
|
|
|
|
)
|
2014-11-19 02:23:05 +00:00
|
|
|
|
|
|
|
## Global settings
|
|
|
|
|
|
|
|
include_directories(
|
|
|
|
${QDBUS_INCLUDE_DIRS}
|
2021-07-28 13:14:25 +03:00
|
|
|
# for gwenview_export.h
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/lib
|
2016-04-06 12:26:19 +00:00
|
|
|
)
|
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)
|
2022-10-03 20:32:24 +03:00
|
|
|
|
|
|
|
if(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR})
|
|
|
|
feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)
|
|
|
|
endif()
|