|
|
|
@@ -6,18 +6,15 @@ else() |
|
|
|
string(REPLACE "-g" "" CMAKE_C_FLAGS "${CMAKE_C_FLAGS}") |
|
|
|
endif() |
|
|
|
|
|
|
|
include_directories(${LITE_DIR}) |
|
|
|
set(OPERATOR_LIBRARY_PATH ${CMAKE_BINARY_DIR}/operator_library) |
|
|
|
set(HEADER_PATH "${OPERATOR_LIBRARY_PATH}/include") |
|
|
|
if(PLATFORM_ARM64 OR PLATFORM_ARM32) |
|
|
|
add_compile_definitions(ENABLE_NEON) |
|
|
|
add_compile_definitions(ENABLE_ARM) |
|
|
|
endif() |
|
|
|
|
|
|
|
if(PLATFORM_ARM64) |
|
|
|
add_compile_definitions(ENABLE_ARM64) |
|
|
|
add_compile_definitions(ENABLE_NEON) |
|
|
|
add_compile_definitions(ENABLE_ARM) |
|
|
|
elseif(PLATFORM_ARM32) |
|
|
|
add_compile_definitions(ENABLE_ARM32) |
|
|
|
add_compile_definitions(ENABLE_NEON) |
|
|
|
add_compile_definitions(ENABLE_ARM) |
|
|
|
else() |
|
|
|
include(${MICRO_DIR}/cmake/package_cmsis.cmake) |
|
|
|
add_library(cmsis_nn STATIC ${CMSIS_OPS}) |
|
|
|
|