2014-11-13 19:30:51 +02:00
|
|
|
|
|
|
|
add_subdirectory( pics )
|
|
|
|
|
2022-09-27 16:47:13 +03:00
|
|
|
kde4_bool_to_01(LIBUSB_FOUND HAVE_LIBUSB)
|
2014-11-13 19:30:51 +02:00
|
|
|
|
2021-03-26 21:40:56 +02:00
|
|
|
configure_file (
|
|
|
|
config-kcontrol-input.h.cmake
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/config-kcontrol-input.h
|
|
|
|
)
|
2014-11-13 19:30:51 +02:00
|
|
|
|
2023-06-17 18:38:55 +03:00
|
|
|
include_directories(${KDE4_INCLUDES})
|
2014-11-13 19:30:51 +02:00
|
|
|
|
|
|
|
if (LIBUSB_FOUND)
|
2023-06-17 18:38:55 +03:00
|
|
|
include_directories(${LIBUSB_INCLUDES})
|
2014-11-13 19:30:51 +02:00
|
|
|
endif (LIBUSB_FOUND)
|
|
|
|
|
|
|
|
|
|
|
|
if(X11_Xcursor_FOUND)
|
|
|
|
set( libnoinst_SRCS
|
|
|
|
xcursor/themepage.cpp
|
|
|
|
xcursor/thememodel.cpp
|
|
|
|
xcursor/cursortheme.cpp
|
|
|
|
xcursor/xcursortheme.cpp
|
|
|
|
xcursor/previewwidget.cpp
|
|
|
|
xcursor/itemdelegate.cpp
|
|
|
|
xcursor/sortproxymodel.cpp
|
2015-09-01 04:37:19 +03:00
|
|
|
../krdb/krdb.cpp
|
|
|
|
xcursor/themepage.ui
|
|
|
|
)
|
2014-11-13 19:30:51 +02:00
|
|
|
include_directories( ${CMAKE_CURRENT_SOURCE_DIR}/xcursor/ )
|
|
|
|
else(X11_Xcursor_FOUND)
|
|
|
|
set( libnoinst_SRCS core/themepage.cpp )
|
|
|
|
include_directories( ${CMAKE_CURRENT_SOURCE_DIR}/core/ )
|
|
|
|
endif(X11_Xcursor_FOUND)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
########### next target ###############
|
|
|
|
|
|
|
|
set(kapplymousetheme_SRCS kapplymousetheme.cpp )
|
|
|
|
|
|
|
|
|
2015-09-01 04:37:19 +03:00
|
|
|
add_executable(kapplymousetheme ${kapplymousetheme_SRCS})
|
2014-11-13 19:30:51 +02:00
|
|
|
|
|
|
|
target_link_libraries(kapplymousetheme
|
2023-06-17 23:26:56 +03:00
|
|
|
KDE4::kdeui
|
2022-10-06 15:54:20 +03:00
|
|
|
${X11_X11_LIB}
|
|
|
|
)
|
2014-11-13 19:30:51 +02:00
|
|
|
if (X11_Xcursor_FOUND)
|
|
|
|
target_link_libraries(kapplymousetheme ${X11_Xcursor_LIB})
|
|
|
|
endif (X11_Xcursor_FOUND)
|
|
|
|
|
2023-06-17 18:38:55 +03:00
|
|
|
install(
|
|
|
|
TARGETS kapplymousetheme
|
|
|
|
DESTINATION ${KDE_BIN_INSTALL_DIR}
|
|
|
|
)
|
2014-11-13 19:30:51 +02:00
|
|
|
|
|
|
|
|
|
|
|
########### next target ###############
|
|
|
|
|
2015-09-01 04:37:19 +03:00
|
|
|
set(kcm_input_PART_SRCS mouse.cpp main.cpp logitechmouse.cpp kmousedlg.ui logitechmouse_base.ui )
|
2014-11-13 19:30:51 +02:00
|
|
|
|
|
|
|
kde4_add_plugin(kcm_input ${kcm_input_PART_SRCS})
|
|
|
|
|
|
|
|
|
2023-06-17 23:26:56 +03:00
|
|
|
target_link_libraries(kcm_input KDE4::kio ${X11_LIBRARIES})
|
2014-11-13 19:30:51 +02:00
|
|
|
if (LIBUSB_FOUND)
|
|
|
|
target_link_libraries(kcm_input ${LIBUSB_LIBRARIES})
|
|
|
|
endif (LIBUSB_FOUND)
|
|
|
|
if (X11_Xcursor_FOUND)
|
|
|
|
target_link_libraries(kcm_input ${X11_Xcursor_LIB})
|
|
|
|
endif (X11_Xcursor_FOUND)
|
|
|
|
if (X11_Xfixes_FOUND)
|
|
|
|
target_link_libraries(kcm_input ${X11_Xfixes_LIB})
|
|
|
|
endif (X11_Xfixes_FOUND)
|
|
|
|
|
2020-02-08 19:29:32 +00:00
|
|
|
install(TARGETS kcm_input DESTINATION ${KDE4_PLUGIN_INSTALL_DIR} )
|
2014-11-13 19:30:51 +02:00
|
|
|
|
|
|
|
|
|
|
|
########### next target ###############
|
|
|
|
|
|
|
|
set(kcm_cursortheme_PART_SRCS kcmcursortheme.cpp ${libnoinst_SRCS})
|
|
|
|
|
|
|
|
kde4_add_plugin(kcm_cursortheme ${kcm_cursortheme_PART_SRCS})
|
|
|
|
|
|
|
|
|
2022-10-06 15:54:20 +03:00
|
|
|
target_link_libraries(kcm_cursortheme
|
2023-06-17 23:26:56 +03:00
|
|
|
KDE4::kio
|
|
|
|
KDE4::karchive
|
2022-10-06 15:54:20 +03:00
|
|
|
${X11_LIBRARIES}
|
|
|
|
)
|
2014-11-13 19:30:51 +02:00
|
|
|
|
|
|
|
if (X11_Xcursor_FOUND)
|
|
|
|
target_link_libraries(kcm_cursortheme ${X11_Xcursor_LIB})
|
|
|
|
endif (X11_Xcursor_FOUND)
|
|
|
|
if (X11_Xfixes_FOUND)
|
|
|
|
target_link_libraries(kcm_cursortheme ${X11_Xfixes_LIB})
|
|
|
|
endif (X11_Xfixes_FOUND)
|
|
|
|
|
2023-09-07 22:20:35 +03:00
|
|
|
install(
|
|
|
|
TARGETS kcm_cursortheme
|
|
|
|
DESTINATION ${KDE4_PLUGIN_INSTALL_DIR}
|
|
|
|
)
|
2014-11-13 19:30:51 +02:00
|
|
|
|
|
|
|
########### install files ###############
|
|
|
|
|
2023-09-07 22:20:35 +03:00
|
|
|
install(
|
|
|
|
FILES mouse.desktop
|
|
|
|
DESTINATION ${KDE4_SERVICES_INSTALL_DIR}
|
|
|
|
)
|
|
|
|
|
|
|
|
install(
|
|
|
|
FILES cursortheme.desktop
|
|
|
|
DESTINATION ${KDE4_SERVICES_INSTALL_DIR}
|
|
|
|
)
|
2014-11-13 19:30:51 +02:00
|
|
|
|
2023-09-07 22:20:35 +03:00
|
|
|
install(
|
|
|
|
FILES mouse_new.desktop
|
|
|
|
DESTINATION ${KDE4_DATA_INSTALL_DIR}/solid/actions
|
|
|
|
)
|