TFLite C API: add cmake support
This commit is contained in:
parent
be6e4f56fc
commit
5b5310739e
@ -39,15 +39,12 @@ add_library(tensorflowlite_c ${TFLITE_C_LIBTYPE}
|
||||
)
|
||||
|
||||
if (TFLITE_C_BUILD_SHARED_LIBS)
|
||||
if (UNIX)
|
||||
if (APPLE)
|
||||
target_link_options(tensorflowlite_c PRIVATE "-Wl,-exported_symbols_list,${TENSORFLOW_SOURCE_DIR}/tensorflow/lite/c/exported_symbols.lds")
|
||||
else ()
|
||||
target_link_options(tensorflowlite_c PRIVATE "-Wl,--version-script,${TENSORFLOW_SOURCE_DIR}/tensorflow/lite/c/version_script.lds")
|
||||
endif()
|
||||
endif()
|
||||
if (WIN32)
|
||||
target_compile_definitions(tensorflowlite_c PRIVATE TFL_COMPILE_LIBRARY)
|
||||
elseif (APPLE)
|
||||
target_link_options(tensorflowlite_c PRIVATE "-Wl,-exported_symbols_list,${TENSORFLOW_SOURCE_DIR}/tensorflow/lite/c/exported_symbols.lds")
|
||||
else ()
|
||||
target_link_options(tensorflowlite_c PRIVATE "-Wl,--version-script,${TENSORFLOW_SOURCE_DIR}/tensorflow/lite/c/version_script.lds")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user