mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-24 02:42:50 +00:00

reference: https://github.com/fluxer/katana/issues/7 Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
42 lines
1.1 KiB
CMake
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})
|