update src

This commit is contained in:
QIDI TECH
2024-11-28 15:23:54 +08:00
parent 7eb6543991
commit 79518648c0
37 changed files with 615 additions and 14023 deletions

View File

@@ -230,6 +230,16 @@ if (WIN32)
else ()
if (NOT APPLE AND NOT FLATPAK)
set(output_sos_Release "")
set(output_sos_Debug "")
add_custom_target(QIDIStudioSosCopy ALL DEPENDS QIDIStudio)
if ("${CMAKE_BUILD_TYPE}" STREQUAL "Debug")
qidistudio_copy_sos(QIDIStudioSosCopy "Debug" "d" output_sos_Debug)
else()
qidistudio_copy_sos(QIDIStudioSosCopy "Release" "" output_sos_Release)
endif()
endif()
if (APPLE AND NOT CMAKE_MACOSX_BUNDLE)
# On OSX, the name of the binary matches the name of the Application.
add_custom_command(TARGET QIDIStudio POST_BUILD
@@ -288,5 +298,9 @@ if (WIN32)
endif ()
install(FILES ${output_dlls_${build_type}} DESTINATION "${CMAKE_INSTALL_PREFIX}")
else ()
if (APPLE)
else()
install(FILES ${output_sos_${build_type}} DESTINATION "${CMAKE_INSTALL_PREFIX}")
endif()
install(TARGETS QIDIStudio RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}" BUNDLE DESTINATION ${CMAKE_INSTALL_BINDIR})
endif ()