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-admin-packaging/lxqt-admin-time/CMakeLists.txt

84 lines
1.7 KiB

project(lxqt-admin-time)
# build static helper class first
include_directories (
${CMAKE_CURRENT_BINARY_DIR}
)
set ( lxqt-admin-time_HDRS
timeadmindialog.h
datetime.h
timezone.h
timedatectl.h
)
set ( lxqt-admin-time_SRCS
main.cpp
timeadmindialog.cpp
datetime.cpp
timezone.cpp
timedatectl.cpp
)
set ( lxqt-admin-time_MOCS
timeadmindialog.h
datetime.h
timezone.h
)
set( lxqt-admin-time_UIS
datetime.ui
timezone.ui
)
qt5_wrap_cpp(MOCS ${lxqt-admin-time_MOCS})
qt5_wrap_ui(UIS ${lxqt-admin-time_UIS})
# Translations **********************************
lxqt_translate_ts(lxqt-admin-time_QM_FILES
UPDATE_TRANSLATIONS ${UPDATE_TRANSLATIONS}
SOURCES
${lxqt-admin-time_HDRS}
${lxqt-admin-time_SRCS}
${lxqt-admin-time_UIS}
INSTALL_DIR
"${LXQT_TRANSLATIONS_DIR}/${PROJECT_NAME}"
PULL_TRANSLATIONS
${PULL_TRANSLATIONS}
CLEAN_TRANSLATIONS
${CLEAN_TRANSLATIONS}
TRANSLATIONS_REPO
${TRANSLATIONS_REPO}
TRANSLATIONS_REFSPEC
${TRANSLATIONS_REFSPEC}
REPO_SUBDIR
"lxqt-admin/${PROJECT_NAME}"
)
lxqt_translate_desktop(DESKTOP_FILES
SOURCES
lxqt-admin-time.desktop.in
)
lxqt_app_translation_loader(lxqt-admin-time_QM_LOADER ${PROJECT_NAME})
#************************************************
add_executable(lxqt-admin-time
${lxqt-admin-time_SRCS}
${UIS}
${MOCS}
${DESKTOP_FILES}
${lxqt-admin-time_QM_FILES}
${lxqt-admin-time_QM_LOADER}
)
target_link_libraries(lxqt-admin-time
KF5::WindowSystem
Qt5::Widgets
Qt5::DBus
lxqt
)
install(TARGETS lxqt-admin-time RUNTIME DESTINATION bin)
install(FILES ${DESKTOP_FILES} DESTINATION ${CMAKE_INSTALL_PREFIX}/share/applications)