Skip to content

Commit 0409dbc

Browse files
authored
FBX-102 use mac bindings from stevedore (#334)
* use mac bindings from stevedore * fix install command
1 parent db149f0 commit 0409dbc

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

CMakeLists.txt

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,10 @@ if (${USE_STEVEDORE} STREQUAL "ON")
7979

8080
stevedore(internal-unpack ${stevedore_repo_name} ${fbxsdk_artifact_name}/${fbxsdk_artifact_id} "${CMAKE_BINARY_DIR}/deps/${fbxsdk_artifact_name}")
8181
stevedore(internal-unpack ${stevedore_repo_name} ${swig_artifact_name}/${swig_artifact_id} "${CMAKE_BINARY_DIR}/deps/${swig_artifact_name}")
82+
83+
if(${CMAKE_SYSTEM_NAME} STREQUAL "Darwin")
84+
stevedore(internal-unpack ${stevedore_repo_name} fbx-bindings-mac-x64/4.0.1_6063f5e419d0e0dd40b23506f24a269043a8fc16a86bcddd158201d121f9e62b.7z "${CMAKE_BINARY_DIR}/deps/fbx-bindings-mac-x64")
85+
endif()
8286

8387
file(GLOB_RECURSE SWIG_EXECUTABLE "${CMAKE_BINARY_DIR}/deps/${swig_artifact_name}/${swig_executable_name}")
8488
file(GLOB_RECURSE swig_lib "${CMAKE_BINARY_DIR}/deps/${swig_artifact_name}/swig.swg")
@@ -277,9 +281,11 @@ install(FILES ${CMAKE_BINARY_DIR}/package.json DESTINATION ${CMAKE_INSTALL_PREFI
277281
install(DIRECTORY ${CMAKE_BINARY_DIR}/swig/generated/csharp/ DESTINATION ${CMAKE_INSTALL_PREFIX}/com.autodesk.fbx/Runtime/Scripts FILES_MATCHING PATTERN "*.cs")
278282
install(DIRECTORY ${CMAKE_SOURCE_DIR}/Source/optimized/ DESTINATION ${CMAKE_INSTALL_PREFIX}/com.autodesk.fbx/Runtime/Scripts FILES_MATCHING PATTERN "*.cs")
279283

280-
install(TARGETS UnityFbxSdkNative DESTINATION ${CMAKE_INSTALL_PREFIX}/com.autodesk.fbx/Editor/Plugins)
281-
282-
284+
if(${CMAKE_SYSTEM_NAME} STREQUAL "Darwin")
285+
install(DIRECTORY "${CMAKE_BINARY_DIR}/deps/fbx-bindings-mac-x64/UnityFbxSdkNative.bundle" DESTINATION ${CMAKE_INSTALL_PREFIX}/com.autodesk.fbx/Editor/Plugins)
286+
else()
287+
install(TARGETS UnityFbxSdkNative DESTINATION ${CMAKE_INSTALL_PREFIX}/com.autodesk.fbx/Editor/Plugins)
288+
endif()
283289

284290
install(FILES ${CMAKE_SOURCE_DIR}/CHANGELOG.md DESTINATION ${CMAKE_INSTALL_PREFIX}/com.autodesk.fbx)
285291
install(FILES ${CMAKE_SOURCE_DIR}/LICENSE.md DESTINATION ${CMAKE_INSTALL_PREFIX}/com.autodesk.fbx)

0 commit comments

Comments
 (0)