代码拉取完成,页面将自动刷新
同步操作将从 GXDE OS/gxde-deb-installer 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
cmake_minimum_required(VERSION 3.7)
if (NOT DEFINED VERSION)
set(VERSION 1.2.2)
endif ()
project(gxde-deb-installer)
#set(CMAKE_VERBOSE_MAKEFILE ON)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall")
if (NOT (${CMAKE_BUILD_TYPE} MATCHES "Debug"))
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O3")
# generate qm files
execute_process(COMMAND bash "translate_generation.sh"
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR})
execute_process(COMMAND bash "translate_ts2desktop.sh"
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR})
else ()
set(CMAKE_CXX_COMPILER "clang++")
endif ()
configure_file(environments.h.in environments.h @ONLY)
# Sources files
file(GLOB SRCS "*.h" "*.cpp" "widgets/*.h" "widgets/*.cpp")
# Find the library
find_package(PkgConfig REQUIRED)
find_package(Qt5Widgets REQUIRED)
find_package(Qt5Concurrent REQUIRED)
find_package(QApt REQUIRED)
find_package(DtkWidget REQUIRED)
# Tell CMake to create the executable
add_executable(gxde-deb-installer ${SRCS} resources/resources.qrc)
target_include_directories(gxde-deb-installer PUBLIC ${DtkWidget_INCLUDE_DIRS} ${OBJECT_BINARY_DIR})
target_link_libraries(gxde-deb-installer
QApt
${DtkWidget_LIBRARIES}
${Qt5Widgets_LIBRARIES}
${Qt5Concurrent_LIBRARIES}
)
# Install settings
if (CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
set(CMAKE_INSTALL_PREFIX /usr)
endif ()
# Install qm files
file(GLOB QM_FILES "translations/*.qm")
install(FILES ${QM_FILES}
DESTINATION share/gxde-deb-installer/translations)
# Install icons
foreach (ICON_SIZE 16 24 32 48 64 96 128 256)
install(FILES resources/images/gxde-deb-installer-${ICON_SIZE}px.svg
RENAME gxde-deb-installer.svg
DESTINATION share/icons/hicolor/${ICON_SIZE}x${ICON_SIZE}/apps)
endforeach ()
install(TARGETS gxde-deb-installer DESTINATION bin)
install(FILES gxde-deb-installer.desktop DESTINATION share/applications)
install(FILES gxde-deb-installer.applications DESTINATION share/application-registry)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。