Skip to content

Commit

Permalink
update cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
yonielwest committed Feb 23, 2024
1 parent ec0e148 commit 8b55563
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions src/lib.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -261,20 +261,13 @@ MACRO(EXPORT_INCLUDE)
${EXPORT_HEADER} ${CMAKE_INCLUDE_OUTPUT_DIRECTORY}
COMMENT "Copying headers and resource to output directory.")

# copy gpupixel and vnn lib
SET(VNN_LIBS ${CMAKE_CURRENT_SOURCE_DIR}/third_party/vnn/libs/${CURRENT_OS})

if(${CURRENT_OS} STREQUAL "ios" OR ${CURRENT_OS} STREQUAL "macos")
# copy gpupixel and vnn lib
SET(VNN_LIBS ${CMAKE_CURRENT_SOURCE_DIR}/third_party/vnn/libs/${CURRENT_OS})
ADD_CUSTOM_COMMAND(TARGET ${PROJECT_NAME} POST_BUILD
COMMAND ${CMAKE_COMMAND} -E make_directory ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/vnn
COMMAND cp -a ${VNN_LIBS} ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/vnn
)
else()
ADD_CUSTOM_COMMAND(TARGET ${PROJECT_NAME} POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_directory
${VNN_LIBS} ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/vnn
)
endif()
ENDMACRO()

EXPORT_INCLUDE()

0 comments on commit 8b55563

Please sign in to comment.