Skip to content

Commit

Permalink
update lib.cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
yonielwest committed Feb 23, 2024
1 parent d702350 commit fe2ec50
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/lib.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -272,10 +272,17 @@ ADD_CUSTOM_COMMAND(TARGET ${PROJECT_NAME} PRE_BUILD
COMMENT "Copying headers and resource to output directory.")

# copy gpupixel and vnn lib
if(${CURRENT_OS} STREQUAL "ios" or ${CURRENT_OS} STREQUAL "macos")
ADD_CUSTOM_COMMAND(TARGET ${PROJECT_NAME} POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_if_different
COMMAND ${CMAKE_COMMAND} -E copy_directory
${VNN_LIBS} ${COPY_DST_OUTPUT_DIR}
)
else()
ADD_CUSTOM_COMMAND(TARGET ${PROJECT_NAME} POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy
${VNN_LIBS} ${COPY_DST_OUTPUT_DIR}
)
endif()
ENDMACRO()
if(NOT ${CURRENT_OS} STREQUAL "android")
EXPORT_INCLUDE()
Expand Down

0 comments on commit fe2ec50

Please sign in to comment.