mirror of
https://invent.kde.org/graphics/okular
synced 2024-08-27 11:40:07 +00:00
![Albert Astals Cid](/assets/img/avatar_default.png)
Use a QString to serialize the command line options other than urls to open so it can be easily passed around to every place that opens a new shell or tab or overrides the content in a unique instance. BUGS: 334100 FIXED-IN: 4.14.0 REVIEW: 119595
39 lines
1 KiB
CMake
39 lines
1 KiB
CMake
|
|
include_directories(
|
|
${CMAKE_CURRENT_SOURCE_DIR}/..
|
|
)
|
|
|
|
# checking whether we should enable activities support
|
|
|
|
macro_optional_find_package(KActivities 6.1.0)
|
|
macro_log_feature(KActivities_FOUND "KActivities" "Activities interface library" "https://projects.kde.org/projects/kde/kdelibs/kactivities" FALSE "6.1.0" "Required for Activities integration.")
|
|
|
|
if(KActivities_FOUND)
|
|
add_definitions(-DKActivities_FOUND)
|
|
include_directories(${KACTIVITIES_INCLUDE_DIRS})
|
|
endif(KActivities_FOUND)
|
|
|
|
# okular
|
|
|
|
set(okular_SRCS
|
|
main.cpp
|
|
okular_main.cpp
|
|
shell.cpp
|
|
shellutils.cpp
|
|
)
|
|
|
|
kde4_add_app_icon(okular_SRCS "${CMAKE_CURRENT_SOURCE_DIR}/../ui/data/icons/hi*-apps-okular.png")
|
|
|
|
kde4_add_executable(okular ${okular_SRCS})
|
|
|
|
target_link_libraries(okular ${KDE4_KPARTS_LIBS} ${KACTIVITIES_LIBRARY})
|
|
|
|
install(TARGETS okular ${INSTALL_TARGETS_DEFAULT_ARGS})
|
|
|
|
|
|
# okular shell data files
|
|
|
|
install( PROGRAMS okular.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )
|
|
install( FILES shell.rc DESTINATION ${DATA_INSTALL_DIR}/okular )
|
|
|