diff --git a/infra/cmake/packages/CMSIS-NN-6.0.0/CMSIS-NNConfig.cmake b/infra/cmake/packages/CMSIS-NN-6.0.0/CMSIS-NNConfig.cmake new file mode 100644 index 00000000000..41b748d1ae0 --- /dev/null +++ b/infra/cmake/packages/CMSIS-NN-6.0.0/CMSIS-NNConfig.cmake @@ -0,0 +1,14 @@ +function(_CMSIS_NN_import) + nnas_include(ExternalSourceTools) + nnas_include(OptionTools) + + envoption(EXTERNAL_DOWNLOAD_SERVER "https://github.com") + envoption(CMSIS_NN_6_0_0_URL ${EXTERNAL_DOWNLOAD_SERVER}/ARM-software/CMSIS-NN/archive/refs/tags/v6.0.0.tar.gz) + + ExternalSource_Download(CMSIS_NN DIRNAME CMSIS-NN-6.0.0 ${CMSIS_NN_6_0_0_URL}) + + set(CMSIS_NNSource_DIR ${CMSIS_NN_SOURCE_DIR} PARENT_SCOPE) + set(CMSIS_NNSource_FOUND TRUE PARENT_SCOPE) +endfunction(_CMSIS_NN_import) + +_CMSIS_NN_import() diff --git a/infra/cmake/packages/CMSIS-NN-6.0.0/CMSIS-NNConfigVersion.cmake b/infra/cmake/packages/CMSIS-NN-6.0.0/CMSIS-NNConfigVersion.cmake new file mode 100644 index 00000000000..7f85719f568 --- /dev/null +++ b/infra/cmake/packages/CMSIS-NN-6.0.0/CMSIS-NNConfigVersion.cmake @@ -0,0 +1,10 @@ +set(PACKAGE_VERSION "6.0.0") +set(PACKAGE_VERSION_EXACT FALSE) +set(PACKAGE_VERSION_COMPATIBLE FALSE) +set(PACKAGE_VERSION_UNSUITABLE TRUE) + +if(PACKAGE_FIND_VERSION VERSION_EQUAL PACKAGE_VERSION) + set(PACKAGE_VERSION_EXACT TRUE) + set(PACKAGE_VERSION_COMPATIBLE TRUE) + set(PACKAGE_VERSION_UNSUITABLE FALSE) +endif(PACKAGE_FIND_VERSION VERSION_EQUAL PACKAGE_VERSION)