Skip to content

Commit

Permalink
Merge pull request #20 from OPENSPHERE-Inc/macos-fix
Browse files Browse the repository at this point in the history
CI fix for MacOS
  • Loading branch information
hanatyan128 authored Dec 19, 2024
2 parents fdd9c6e + 19f9125 commit 8be8c61
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,6 @@ target_include_directories(
PRIVATE ${CMAKE_SOURCE_DIR}/lib/o2/src ${CMAKE_SOURCE_DIR}/shared/properties-view
${CMAKE_SOURCE_DIR}/shared/qt/vertical-scroll-area ${CMAKE_SOURCE_DIR}/shared/qt/wrappers)

set_target_properties_plugin(${CMAKE_PROJECT_NAME} PROPERTIES OUTPUT_NAME ${_name})

if(NOT buildspec)
file(READ "${CMAKE_CURRENT_SOURCE_DIR}/buildspec.json" buildspec)
endif()
Expand All @@ -124,26 +122,30 @@ string(
qt6
version)

if(CMAKE_HOST_SYSTEM_NAME STREQUAL "Windows")
if(CMAKE_HOST_SYSTEM_NAME STREQUAL "Darwin")
install(
FILES "${CMAKE_SOURCE_DIR}/.deps/obs-deps-qt6-${qtversion}-x64/bin/Qt6WebSockets.dll"
DIRECTORY "${CMAKE_SOURCE_DIR}/.deps/obs-deps-qt6-${qtversion}-universal/lib/QtWebSockets.framework"
CONFIGURATIONS RelWithDebInfo Debug Release
DESTINATION bin/64bit
DESTINATION "${CMAKE_PROJECT_NAME}.plugin/Contents/Frameworks"
OPTIONAL)
install(
DIRECTORY "${CMAKE_SOURCE_DIR}/.deps/obs-deps-qt6-${qtversion}-x64/plugins/tls"
DIRECTORY "${CMAKE_SOURCE_DIR}/.deps/obs-deps-qt6-${qtversion}-universal/plugins/tls"
CONFIGURATIONS RelWithDebInfo Debug Release
DESTINATION bin/64bit
DESTINATION "${CMAKE_PROJECT_NAME}.plugin/Contents/Frameworks"
OPTIONAL)
elseif(CMAKE_HOST_SYSTEM_NAME STREQUAL "Darwin")
endif()

set_target_properties_plugin(${CMAKE_PROJECT_NAME} PROPERTIES OUTPUT_NAME ${_name})

if(CMAKE_HOST_SYSTEM_NAME STREQUAL "Windows")
install(
DIRECTORY "${CMAKE_SOURCE_DIR}/.deps/obs-deps-qt6-${qtversion}-universal/lib/QtWebSockets.framework"
FILES "${CMAKE_SOURCE_DIR}/.deps/obs-deps-qt6-${qtversion}-x64/bin/Qt6WebSockets.dll"
CONFIGURATIONS RelWithDebInfo Debug Release
DESTINATION "${CMAKE_PROJECT_NAME}.plugin/Contents/Frameworks"
DESTINATION bin/64bit
OPTIONAL)
install(
DIRECTORY "${CMAKE_SOURCE_DIR}/.deps/obs-deps-qt6-${qtversion}-universal/plugins/tls"
DIRECTORY "${CMAKE_SOURCE_DIR}/.deps/obs-deps-qt6-${qtversion}-x64/plugins/tls"
CONFIGURATIONS RelWithDebInfo Debug Release
DESTINATION "${CMAKE_PROJECT_NAME}.plugin/Contents/Frameworks"
DESTINATION bin/64bit
OPTIONAL)
endif()

0 comments on commit 8be8c61

Please sign in to comment.