You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
lxqt-config-packaging/lxqt-config-input/CMakeLists.txt

79 lines
1.7 KiB

project(lxqt-config-input)
find_package(X11 REQUIRED)
include_directories(
${X11_INCLUDE_DIR}
"${CMAKE_CURRENT_SOURCE_DIR}/../liblxqt-config-cursor"
"${CMAKE_CURRENT_BINARY_DIR}/../liblxqt-config-cursor"
)
set(lxqt-config-input_HDRS
keyboardconfig.h
mouseconfig.h
mouseconfig.h
keyboardlayoutconfig.h
selectkeyboardlayoutdialog.h
)
set(lxqt-config-input_SRCS
lxqt-config-input.cpp
keyboardconfig.cpp
mouseconfig.cpp
keyboardlayoutconfig.cpp
selectkeyboardlayoutdialog.cpp
)
set(lxqt-config-input_UIS
mouseconfig.ui
keyboardconfig.ui
keyboardlayoutconfig.ui
selectkeyboardlayoutdialog.ui
)
# Translations **********************************
lxqt_translate_ts(QM_FILES
UPDATE_TRANSLATIONS
${UPDATE_TRANSLATIONS}
SOURCES
${lxqt-config-input_HDRS}
${lxqt-config-input_SRCS}
${lxqt-config-input_UIS}
INSTALL_DIR
"${LXQT_TRANSLATIONS_DIR}/${PROJECT_NAME}"
)
lxqt_app_translation_loader(QM_LOADER ${PROJECT_NAME})
lxqt_translate_desktop(DESKTOP_FILES SOURCES ${PROJECT_NAME}.desktop.in)
#************************************************
add_definitions(
-DPACKAGE_DATA_DIR="${CMAKE_INSTALL_FULL_DATAROOTDIR}/lxqt-config-input"
)
add_executable(lxqt-config-input
${lxqt-config-input_SRCS}
${DESKTOP_FILES}
${QM_FILES}
${QM_LOADER}
)
target_link_libraries(lxqt-config-input
Qt5::Widgets
Qt5::X11Extras
${X11_LIBRARIES}
lxqt
lxqt-config-cursor
)
install(TARGETS
lxqt-config-input
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
COMPONENT Runtime
)
install(FILES
${DESKTOP_FILES}
DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/applications"
COMPONENT Runtime
)