kde-workspace/klipper/CMakeLists.txt
Ivailo Monev 9cb8e7a937 generic: move find_package() calls to top-level build file
reference:
https://github.com/fluxer/katana/issues/7

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2021-03-26 21:40:56 +02:00

42 lines
1.1 KiB
CMake

set(libklipper_common_SRCS
klipper.cpp
urlgrabber.cpp
configdialog.cpp
history.cpp
historyitem.cpp
historystringitem.cpp
klipperpopup.cpp
popupproxy.cpp
historyimageitem.cpp
historyurlitem.cpp
actionstreewidget.cpp
editactiondialog.cpp
clipcommandprocess.cpp
generalconfig.ui
actionsconfig.ui
editactiondialog.ui
)
if (PRISON_FOUND)
add_definitions(-DHAVE_PRISON)
include_directories(${PRISON_INCLUDE_DIR})
endif (PRISON_FOUND)
kde4_add_kcfg_files(libklipper_common_SRCS klippersettings.kcfgc)
set(klipper_SRCS ${libklipper_common_SRCS} main.cpp tray.cpp)
add_executable(klipper ${klipper_SRCS})
target_link_libraries(klipper ${KDE4_KDEUI_LIBS} ${X11_LIBRARIES} ${ZLIB_LIBRARY})
if (X11_Xfixes_FOUND)
target_link_libraries(klipper ${X11_Xfixes_LIB})
endif (X11_Xfixes_FOUND)
if (PRISON_FOUND)
target_link_libraries(klipper ${PRISON_LIBRARIES})
endif (PRISON_FOUND)
install(TARGETS klipper ${INSTALL_TARGETS_DEFAULT_ARGS})
install(PROGRAMS klipper.desktop DESTINATION ${KDE4_XDG_APPS_INSTALL_DIR})
install(PROGRAMS klipper.desktop DESTINATION ${KDE4_AUTOSTART_INSTALL_DIR})