Skip to content

Commit 5a31e1e

Browse files
committed
Uni-26814-game-wont-compile
1 parent 2ce4c1d commit 5a31e1e

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

CMakeLists.txt

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,10 @@ set(FBXSDK_PACKAGE_TARGET import_fbxsdk)
8686
add_custom_target(
8787
${FBXSDK_PACKAGE_TARGET}
8888
# remove FbxSdk folder
89-
COMMAND ${CMAKE_COMMAND} -E remove_directory "${CMAKE_SOURCE_DIR}/Assets/FbxExporters/FbxSdk"
89+
COMMAND ${CMAKE_COMMAND} -E remove_directory "${CMAKE_SOURCE_DIR}/Assets/FbxSdk"
90+
COMMAND ${CMAKE_COMMAND} -E remove_directory "${CMAKE_SOURCE_DIR}/Assets/FbxExporters/Editor/FbxSdk"
9091
COMMAND "${UNITY_EDITOR_PATH}" -projectPath "${CMAKE_SOURCE_DIR}" -importPackage ${FBXSDK_PACKAGE_PATH} -quit
91-
COMMAND ${CMAKE_COMMAND} -E rename "${CMAKE_SOURCE_DIR}/Assets/FbxSdk" "${CMAKE_SOURCE_DIR}/Assets/FbxExporters/FbxSdk"
92+
COMMAND ${CMAKE_COMMAND} -E rename "${CMAKE_SOURCE_DIR}/Assets/FbxSdk" "${CMAKE_SOURCE_DIR}/Assets/FbxExporters/Editor/FbxSdk"
9293
)
9394

9495
###########################################################################
@@ -133,7 +134,7 @@ if("${CMAKE_BUILD_TYPE}" STREQUAL "Release")
133134
"${CSHARP_SYSTEM_LIBRARY}"
134135
"${CSHARP_UNITYEDITOR_LIBRARY}"
135136
"${CSHARP_UNITYENGINE_LIBRARY}"
136-
"${CMAKE_SOURCE_DIR}/Assets/FbxExporters/FbxSdk/Plugins/UnityFbxSdk.dll"
137+
"${CMAKE_SOURCE_DIR}/Assets/FbxExporters/Editor/FbxSdk/Plugins/UnityFbxSdk.dll"
137138
DEPENDS
138139
"${CLASS_LIBRARY_DEST}"
139140
)
@@ -145,7 +146,9 @@ endif()
145146
# Add target for creating a package
146147
add_custom_command(
147148
OUTPUT ${PACKAGE_PATH}
149+
COMMAND "${CMAKE_COMMAND}" -E remove_directory ${CMAKE_BINARY_DIR}/FbxExporterProject
148150
COMMAND "${CMAKE_COMMAND}" --build . --target install --config Release
151+
COMMAND "${CMAKE_COMMAND}" -E remove ${PACKAGE_PATH}
149152
COMMAND "${UNITY_EDITOR_PATH}" -batchmode -projectPath ${CMAKE_BINARY_DIR}/FbxExporterProject -exportPackage Assets/FbxExporters ${PACKAGE_PATH} -quit
150153
COMMENT "Creating Unity Package ${PACKAGE_PATH}"
151154
DEPENDS UnityFbxExporterEditorDLL

0 commit comments

Comments
 (0)