1 Star 0 Fork 14

KevinDuan/kylin-burner

forked from openKylin/kylin-burner 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
CMakeLists.txt 6.64 KB
一键复制 编辑 原始数据 按行查看 历史
张磊 提交于 2023-11-14 00:49 . Revert "update translation"
cmake_minimum_required(VERSION 3.5)
project(kylin-burner LANGUAGES CXX)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
SET(CMAKE_BUILD_TYPE "Debug")
SET(CMAKE_CXX_FLAGS_DEBUG "$ENV{CXXFLAGS} -O0 -Wall -g2 -ggdb")
SET(CMAKE_CXX_FLAGS_RELEASE "$ENV{CXXFLAGS} -O0 -Wall")
find_package(Qt5 COMPONENTS Widgets DBus X11Extras REQUIRED)
find_package(PkgConfig REQUIRED)
find_package(KF5WindowSystem)
pkg_check_modules(KYSDKQTWIDGETS_PKG kysdk-qtwidgets)
pkg_check_modules(GLIB2 glib-2.0)
pkg_check_modules(KYSDKSYSINFO_PKG kysdk-sysinfo)
pkg_check_modules(KYSDKWAYLANDHELPER_PKG kysdk-waylandhelper)
add_executable(kylin-burner
rc/kylin-burner.qrc
src/main.cpp
src/frame/xatom-helper.cpp
src/frame/xatom-helper.h
src/frame/logger.cpp
src/frame/logger.h
src/frame/configuration.cpp
src/frame/configuration.h
src/frame/signals.cpp
src/frame/signals.h
src/frame/auditlog.h
src/frame/auditlog.cpp
src/po/translation.h
src/view/mainwindow.cpp
src/view/mainwindow.h
src/view/mainwindow.ui
src/view/windowtitle.cpp
src/view/windowtitle.h
src/view/windowtitle.ui
src/view/burndata.cpp
src/view/burndata.h
src/view/burndata.ui
src/view/burnimage.cpp
src/view/burnimage.h
src/view/burnimage.ui
src/view/burnimageisoitem.cpp
src/view/burnimageisoitem.h
src/view/burnimageisoitem.ui
src/view/components/clicklabel.h
src/view/components/clicklabel.cpp
src/view/components/iconlabel.h
src/view/components/iconlabel.cpp
src/view/copyimage.cpp
src/view/copyimage.h
src/view/copyimage.ui
src/view/modaldialog.cpp
src/view/modaldialog.h
src/view/modaldialog.ui
src/view/execdialog.cpp
src/view/execdialog.h
src/view/execdialog.ui
src/view/input.cpp
src/view/input.h
src/view/input.ui
src/view/inputchange.cpp
src/view/inputchange.h
src/view/inputchange.ui
src/view/progress.cpp
src/view/progress.h
src/view/progress.ui
src/view/tips.cpp
src/view/tips.h
src/view/tips.ui
src/view/tipschange.cpp
src/view/tipschange.h
src/view/tipschange.ui
src/view/tip_burnresult.cpp
src/view/tip_burnresult.h
src/view/tip_burnresult.ui
src/view/busnesssetting.cpp
src/view/busnesssetting.h
src/view/busnesssetting.ui
src/view/settingdatas.cpp
src/view/settingdatas.h
src/view/settingdatas.ui
src/view/filefilterrules.cpp
src/view/filefilterrules.h
src/view/filefilterrules.ui
src/view/viewfilterfiles.cpp
src/view/viewfilterfiles.h
src/view/viewfilterfiles.ui
src/view/multiselectfiledialog.h
src/view/multiselectfiledialog.cpp
src/view/multiselectionfiledialog.cpp
src/view/multiselectionfiledialog.h
src/view/kybaboutdialog.cpp
src/view/kybaboutdialog.h
src/view/kybaboutdialog.ui
src/view/diskcheck.cpp
src/view/diskcheck.h
src/view/diskcheck.ui
src/model/logicmain.cpp
src/model/logicmain.h
src/model/logicburndata.cpp
src/model/logicburndata.h
src/model/filefiltermodel.cpp
src/model/filefiltermodel.h
src/model/logicburnimage.cpp
src/model/logicburnimage.h
src/model/logiccopyimage.cpp
src/model/logiccopyimage.h
src/model/monitorcdrom.cpp
src/model/monitorcdrom.h
src/model/menufactory.cpp
src/model/menufactory.h
src/model/diroptutils.cpp
src/model/diroptutils.h
src/data/datacdrom.cpp
src/data/datacdrom.h
src/data/datafile.cpp
src/data/datafile.h
src/data/datadirectory.cpp
src/data/datadirectory.h
src/data/datasetting.cpp
src/data/datasetting.h
src/data/iso9660.cpp
src/data/iso9660.h
src/data/iso9660backend.cpp
src/data/iso9660backend.h
src/process/processbasic.cpp
src/process/processbasic.h
src/process/processearse.cpp
src/process/processearse.h
src/process/processburnimage.cpp
src/process/processburnimage.h
src/process/processcreateiso.cpp
src/process/processcreateiso.h
src/process/processburndata.cpp
src/process/processburndata.h
src/process/processgetiso.cpp
src/process/processgetiso.h
src/process/processcopydisk.cpp
src/process/processcopydisk.h
src/process/processmediainfo.cpp
src/process/processmediainfo.h
src/process/processisoinfo.cpp
src/process/processisoinfo.h
src/process/processopenfile.cpp
src/process/processopenfile.h
src/process/processmd5sum.cpp
src/process/processmd5sum.h
src/process/processburnudfdata.cpp
src/process/processburnudfdata.h
src/status-fix/common.h
src/status-fix/discscsi.h
src/status-fix/discscsi.cpp
src/status-fix/discread.h
src/status-fix/discread.cpp
src/libisofs/rock.h
src/libisofs/bswap.h
src/libisofs/el_torito.h
src/libisofs/isofs.cpp
src/libisofs/isofs.h
src/libisofs/iso_fs.h
)
#安装二进制程序时,保留编译时的runtime path
set_target_properties(kylin-burner PROPERTIES INSTALL_RPATH_USE_LINK_PATH TRUE)
#自定义对象并跟随all_target一起生成
add_custom_target(MO-FILE
ALL
COMMAND "msgfmt" ${CMAKE_CURRENT_SOURCE_DIR}"/src/po/zh_CN.po"
"-o" ${CMAKE_CURRENT_SOURCE_DIR}"/src/po/zh_CN.mo"
COMMAND "msgfmt" ${CMAKE_CURRENT_SOURCE_DIR}"/src/po/bo_CN.po"
"-o" ${CMAKE_CURRENT_SOURCE_DIR}"/src/po/bo_CN.mo"
)
target_include_directories(kylin-burner PRIVATE
${KYSDKQTWIDGETS_PKG_INCLUDE_DIRS}
${GLIB2_INCLUDE_DIRS}
${KYSDKSYSINFO_PKG_INCLUDE_DIRS}
${KYSDKWAYLANDHELPER_PKG_INCLUDE_DIRS}/ukuistylehelper
${KYSDKWAYLANDHELPER_PKG_INCLUDE_DIRS}/windowmanager)
target_link_directories(kylin-burner PRIVATE
${KYSDKQTWIDGETS_PKG_LIBRARY_DIRS}
${KYSDKSYSINFO_PKG_LIBRARY_DIRS}
${KYSDKWAYLANDHELPER_PKG_LIBRARY_DIRS}
${KYSDKQTWIDGETS_PKG_LIBRARY_DIRS})
target_link_libraries(kylin-burner PRIVATE
Qt5::Widgets
Qt5::DBus
Qt5::X11Extras
KF5::WindowSystem
X11
pthread
gsettings-qt
ukui-log4qt
${GLIB2_LIBRARIES}
${KYSDKQTWIDGETS_PKG_LIBRARIES}
${KYSDKSYSINFO_PKG_LIBRARIES}
${KYSDKWAYLANDHELPER_PKG_LIBRARIES})
install(TARGETS kylin-burner ${INSTALL_TARGETS_DEFAULT_ARGS})
install(PROGRAMS kylin-burner.desktop DESTINATION /usr/share/applications)
install(FILES src/po/zh_CN.mo RENAME kylin-burner.mo DESTINATION /usr/share/locale/zh_CN/LC_MESSAGES/)
install(FILES src/po/bo_CN.mo RENAME kylin-burner.mo DESTINATION /usr/share/locale/bo_CN/LC_MESSAGES/)
install(DIRECTORY kylin-burner DESTINATION /usr/share/kylin-user-guide/data/guide/)
install(FILES gsettings/org.ukui.kylinburner.gschema.xml DESTINATION /usr/share/glib-2.0/schemas/)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/kwwzzz/kylin-burner.git
git@gitee.com:kwwzzz/kylin-burner.git
kwwzzz
kylin-burner
kylin-burner
openkylin/yangtze

搜索帮助