2006-03-26 12:19:40 +00:00
|
|
|
|
2007-01-04 00:20:50 +00:00
|
|
|
include_directories(
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/..
|
|
|
|
)
|
|
|
|
|
2012-10-04 18:17:13 +00:00
|
|
|
# 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)
|
|
|
|
|
2007-01-05 19:17:00 +00:00
|
|
|
# okular
|
2006-03-26 12:19:40 +00:00
|
|
|
|
2007-01-05 19:17:00 +00:00
|
|
|
set(okular_SRCS
|
|
|
|
main.cpp
|
|
|
|
shell.cpp
|
2009-10-08 23:48:04 +00:00
|
|
|
shellutils.cpp
|
2007-01-05 19:17:00 +00:00
|
|
|
)
|
2006-03-26 12:19:40 +00:00
|
|
|
|
2009-01-02 16:22:10 +00:00
|
|
|
kde4_add_app_icon(okular_SRCS "${CMAKE_CURRENT_SOURCE_DIR}/../ui/data/icons/hi*-apps-okular.png")
|
2006-03-26 12:19:40 +00:00
|
|
|
|
2006-06-12 18:25:18 +00:00
|
|
|
kde4_add_executable(okular ${okular_SRCS})
|
2006-03-26 12:19:40 +00:00
|
|
|
|
2012-10-04 18:17:13 +00:00
|
|
|
target_link_libraries(okular ${KDE4_KPARTS_LIBS} ${KACTIVITIES_LIBRARY})
|
2006-03-26 12:19:40 +00:00
|
|
|
|
2008-05-27 11:08:26 +00:00
|
|
|
install(TARGETS okular ${INSTALL_TARGETS_DEFAULT_ARGS})
|
2006-03-26 12:19:40 +00:00
|
|
|
|
2007-01-05 19:17:00 +00:00
|
|
|
|
|
|
|
# okular shell data files
|
2006-03-26 12:19:40 +00:00
|
|
|
|
2010-10-19 17:00:35 +00:00
|
|
|
install( PROGRAMS okular.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )
|
2006-07-04 15:24:52 +00:00
|
|
|
install( FILES shell.rc DESTINATION ${DATA_INSTALL_DIR}/okular )
|
2006-03-26 12:19:40 +00:00
|
|
|
|