mirror of
https://invent.kde.org/graphics/okular
synced 2024-08-27 11:40:07 +00:00
19 lines
715 B
CMake
19 lines
715 B
CMake
set(CMAKE_AUTORCC ON)
|
|
|
|
include_directories(
|
|
${CMAKE_CURRENT_SOURCE_DIR}/../..
|
|
${CMAKE_CURRENT_BINARY_DIR}/../../
|
|
)
|
|
add_executable(okularkirigami main.cpp app.qrc)
|
|
target_link_libraries(okularkirigami Qt5::Widgets Qt5::Qml KF5::I18n KF5::CoreAddons)
|
|
if (ANDROID)
|
|
find_package(Qt5 COMPONENTS AndroidExtras)
|
|
target_sources(okularkirigami PRIVATE android.cpp)
|
|
target_link_libraries(okularkirigami Qt5::AndroidExtras)
|
|
endif()
|
|
|
|
install(TARGETS okularkirigami ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
|
|
|
|
install(FILES package/metadata.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} RENAME org.kde.okular.kirigami.desktop)
|
|
install( FILES org.kde.okular.kirigami.appdata.xml DESTINATION ${KDE_INSTALL_METAINFODIR} )
|