Skip to content

Commit

Permalink
Merge pull request IntelRealSense#2468 from matkatz/unity_copy_specif…
Browse files Browse the repository at this point in the history
…ic_dlls

unity - copy specific dlls from the build folder to the unity folder
  • Loading branch information
dorodnic authored Oct 7, 2018
2 parents 5213152 + 7d7b37c commit a5894c5
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions wrappers/csharp/Intel.RealSense/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,12 @@ csharp_set_designer_cs_properties(
if(BUILD_UNITY_BINDINGS)
add_custom_command(TARGET ${PROJECT_NAME}
POST_BUILD
COMMAND XCOPY /y /s "$(OutDir)*.dll" "${CMAKE_BINARY_WIN_DIR}\\wrappers\\unity\\Assets\\RealSenseSDK2.0\\Plugins\\"
COMMENT "Copy DLLs to Unity plugins folder")
COMMAND XCOPY /y /s "$(OutDir)Intel.RealSense.dll" "${CMAKE_BINARY_WIN_DIR}\\wrappers\\unity\\Assets\\RealSenseSDK2.0\\Plugins\\"
COMMENT "Copy Intel.RealSense.dll to Unity plugins folder")
add_custom_command(TARGET ${PROJECT_NAME}
POST_BUILD
COMMAND XCOPY /y /s "$(OutDir)realsense2.dll" "${CMAKE_BINARY_WIN_DIR}\\wrappers\\unity\\Assets\\RealSenseSDK2.0\\Plugins\\"
COMMENT "Copy realsense2.dll to Unity plugins folder")

find_program (UNITY_PATH Unity\\Editor\\Unity.exe)
if(EXISTS ${UNITY_PATH})
Expand Down

0 comments on commit a5894c5

Please sign in to comment.