You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

json.cmake 722 B

5 years ago
5 years ago
5 years ago
5 years ago
123456789101112131415161718192021222324
  1. if (HAVE_JSON)
  2. return()
  3. endif()
  4. include(ExternalProject)
  5. set(JSON_SRC_DIR ${CMAKE_BINARY_DIR}/opensrc/json/include)
  6. ExternalProject_Add(json_build
  7. URL https://github.com/nlohmann/json/releases/download/v3.6.1/include.zip
  8. #URL /home/txd/workspace/cloud_code/pkg/include.zip
  9. SOURCE_DIR ${JSON_SRC_DIR}
  10. CONFIGURE_COMMAND ""
  11. BUILD_COMMAND ""
  12. INSTALL_COMMAND ""
  13. EXCLUDE_FROM_ALL TRUE
  14. )
  15. add_library(json INTERFACE)
  16. target_include_directories(json INTERFACE ${JSON_SRC_DIR})
  17. add_dependencies(json json_build)
  18. #set(HAVE_JSON TRUE CACHE BOOL "json build add")
  19. set(HAVE_JSON TRUE)

Ascend CANN Parser(简称parser)配合TF_Adapter、 ATC工具、IR构图等使用,开发者通过以上工具,借助parser能方便地将第三方框架的算法表示转换成Ascend IR,充分利用昇腾AI处理器卓越的运算能力