2014-11-18 17:46:34 +00:00
|
|
|
project(ark)
|
|
|
|
|
|
|
|
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)
|
2014-11-18 17:46:34 +00:00
|
|
|
include_directories(${KDE4_INCLUDES})
|
|
|
|
add_definitions(${QT_DEFINITIONS} ${KDE4_DEFINITIONS})
|
|
|
|
endif()
|
|
|
|
|
2022-10-02 13:35:46 +03:00
|
|
|
kde4_optional_find_package(LibArchive 3.0.3)
|
2020-02-20 23:33:47 +02:00
|
|
|
set_package_properties(LibArchive PROPERTIES
|
2022-10-06 15:55:39 +03:00
|
|
|
DESCRIPTION "Multi-format archive and compression library"
|
|
|
|
URL "https://libarchive.org/"
|
2020-02-20 23:33:47 +02:00
|
|
|
PURPOSE "Required for among others tar, tar.gz, tar.bz2 formats in Ark"
|
|
|
|
)
|
2014-11-18 17:46:34 +00:00
|
|
|
|
2022-10-02 13:35:46 +03:00
|
|
|
kde4_optional_find_package(LibKonq)
|
2021-03-26 21:58:25 +02:00
|
|
|
set_package_properties(LibKonq PROPERTIES
|
|
|
|
DESCRIPTION "libkonq library"
|
|
|
|
PURPOSE "Need to integrate in konqueror"
|
|
|
|
)
|
|
|
|
|
2022-10-02 13:35:46 +03:00
|
|
|
kde4_optional_find_package(ZLIB)
|
2021-03-26 21:58:25 +02:00
|
|
|
set_package_properties(ZLIB PROPERTIES
|
|
|
|
DESCRIPTION "General purpose data compression library"
|
|
|
|
URL "http://www.zlib.net"
|
|
|
|
PURPOSE "Required for the .gz format support in Ark"
|
|
|
|
)
|
|
|
|
|
2022-10-02 13:35:46 +03:00
|
|
|
kde4_optional_find_package(BZip2)
|
2021-03-26 21:58:25 +02:00
|
|
|
set_package_properties(BZip2 PROPERTIES
|
|
|
|
DESCRIPTION "A high-quality data compressor"
|
|
|
|
URL "http://www.bzip.org"
|
|
|
|
PURPOSE "Required for the .bz2 format support in Ark"
|
|
|
|
)
|
|
|
|
|
2022-10-02 13:35:46 +03:00
|
|
|
kde4_optional_find_package(LibLZMA)
|
2021-03-26 21:58:25 +02:00
|
|
|
set_package_properties(LibLZMA PROPERTIES
|
|
|
|
DESCRIPTION "Legacy data compression software with high compression ratio"
|
|
|
|
URL "http://tukaani.org/xz/"
|
|
|
|
PURPOSE "Required for the .xz and .lzma format support in Ark"
|
|
|
|
)
|
|
|
|
|
2022-10-06 15:55:39 +03:00
|
|
|
find_program(RAR_AND_UNRAR_EXECUTABLE unrar rar)
|
|
|
|
add_feature_info(rar_and_unrar
|
|
|
|
RAR_AND_UNRAR_EXECUTABLE
|
|
|
|
"RAR write support in Ark"
|
|
|
|
)
|
|
|
|
|
2014-11-18 17:46:34 +00:00
|
|
|
add_definitions(-DQT_NO_CAST_FROM_ASCII)
|
2016-04-06 13:16:57 +00:00
|
|
|
include_directories(${PROJECT_SOURCE_DIR} ${PROJECT_BINARY_DIR})
|
2014-11-18 17:46:34 +00:00
|
|
|
|
|
|
|
set(SUPPORTED_ARK_MIMETYPES "")
|
|
|
|
|
2021-07-28 13:14:25 +03:00
|
|
|
include_directories(
|
|
|
|
# for kerfuffle_export.h
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/kerfuffle
|
|
|
|
)
|
|
|
|
|
2014-11-18 17:46:34 +00:00
|
|
|
add_subdirectory(plugins)
|
|
|
|
add_subdirectory(kerfuffle)
|
|
|
|
add_subdirectory(part)
|
|
|
|
add_subdirectory(app)
|
|
|
|
|
|
|
|
if(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR})
|
2022-10-03 20:32:24 +03:00
|
|
|
feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)
|
|
|
|
endif()
|