代码拉取完成,页面将自动刷新
cmake_minimum_required(VERSION 3.14)
project(yoyo-debinstaller 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_MODULE_PATH
${CMAKE_CURRENT_SOURCE_DIR}/cmake)
find_package(Qt5 COMPONENTS Core Widgets Quick LinguistTools REQUIRED)
find_package(QApt REQUIRED)
find_package(AptPkg REQUIRED)
# Find the required Libaries
include_directories(
${APTPKG_INCLUDE_DIR})
set(PROJECT_SOURCES
src/main.cpp
src/debinstaller.cpp
qml.qrc
)
add_executable(yoyo-debinstaller
${PROJECT_SOURCES}
)
target_link_libraries(yoyo-debinstaller
PRIVATE
Qt5::Core
Qt5::Widgets
Qt5::Quick
QApt
${APTPKG_LIBRARIES}
)
file(GLOB TS_FILES translations/*.ts)
qt5_create_translation(QM_FILES ${TS_FILES})
add_custom_target(translations DEPENDS ${QM_FILES} SOURCES ${TS_FILES})
add_dependencies(yoyo-debinstaller translations)
install(FILES ${QM_FILES} DESTINATION /usr/share/yoyo-debinstaller/translations)
install(TARGETS ${PROJECT_NAME} RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
install(FILES
yoyo-debinstaller.desktop
DESTINATION /usr/share/applications/
COMPONENT Runtime
)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。