Warning, /graphics/okular/mobile/app/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 set(CMAKE_AUTORCC ON)
0002
0003 include_directories(
0004 ${CMAKE_CURRENT_SOURCE_DIR}/../..
0005 ${CMAKE_CURRENT_BINARY_DIR}/../../
0006 )
0007 add_executable(okularkirigami main.cpp app.qrc)
0008 target_link_libraries(okularkirigami Qt6::Widgets Qt6::Qml KF6::I18n KF6::CoreAddons)
0009 if (ANDROID)
0010 target_sources(okularkirigami PRIVATE android.cpp)
0011
0012 # androiddeployqt only packages libraries needed by the main binary.
0013 # That is problematic because some of the libraries we need we only use in plugins
0014 # here we help androiddeployqt by linking those plugins dependencies
0015 # to the app.
0016 get_property(aux_list GLOBAL PROPERTY okular_generator_list)
0017 foreach(okular_generator ${aux_list})
0018 get_target_property(okular_generator_dependencies ${okular_generator} LINK_LIBRARIES)
0019 target_link_libraries(okularkirigami ${okular_generator_dependencies})
0020 endforeach()
0021
0022 # Unfortunately gitlab CI for now doesn't use Craft so we need
0023 # to differentiate between gitlab CI and the binary factory
0024 if (ANDROID_LINK_EXTRA_LIBRARIES)
0025 message("Linking in extra libraries to help androiddeployqt")
0026 # androiddeployqt only packages libraries needed by the main binary.
0027 # the pdf/poppler generator links to poppler that links to NSS
0028 # and NSS has plugins. Here we link to those plugins so they get packaged
0029 pkg_check_modules(NSS "nss")
0030 target_link_directories(okularkirigami PRIVATE ${NSS_LIBRARY_DIRS})
0031 target_link_libraries(okularkirigami -lsoftokn3 -lnssckbi -lfreebl3)
0032 endif()
0033
0034 kirigami_package_breeze_icons(ICONS
0035 application-pkcs7-signature
0036 bookmark-remove
0037 bookmarks-organize
0038 dialog-close
0039 document-open
0040 help-about-symbolic
0041 okular
0042 view-preview
0043 view-table-of-contents-ltr
0044 )
0045 endif()
0046
0047 install(TARGETS okularkirigami ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
0048
0049 install(FILES package/metadata.desktop DESTINATION ${KDE_INSTALL_APPDIR} RENAME org.kde.okular.kirigami.desktop)
0050 install( FILES org.kde.okular.kirigami.appdata.xml DESTINATION ${KDE_INSTALL_METAINFODIR} )