From 8b555633521ca39cfb99d09c2c4dec0b910299c1 Mon Sep 17 00:00:00 2001 From: LiamKeh Date: Fri, 23 Feb 2024 11:54:12 +0800 Subject: [PATCH] update cmake --- src/lib.cmake | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/lib.cmake b/src/lib.cmake index 72a12994..c46c36b5 100644 --- a/src/lib.cmake +++ b/src/lib.cmake @@ -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() \ No newline at end of file