CMakeLists.txt 745 B

123456789101112131415161718192021222324252627282930
  1. cmake_minimum_required(VERSION 2.8.7)
  2. if(POLICY CMP0046)
  3. cmake_policy(SET CMP0046 NEW)
  4. endif()
  5. if(POLICY CMP0054)
  6. cmake_policy(SET CMP0054 NEW)
  7. endif()
  8. # ---[ Options
  9. option(build_get_model_io "build cncodec reset" OFF)
  10. option(build_get_model_perfinfo "build cncodec reset" OFF)
  11. option(build_inspect "build cnstream inspect" ON)
  12. option(build_reset "build cncodec reset" OFF)
  13. option(build_web_visualize "build web_visualize" OFF)
  14. if(build_get_model_io)
  15. add_subdirectory(get_model_io)
  16. endif()
  17. if(build_get_model_perfinfo)
  18. add_subdirectory(get_model_perfinfo)
  19. endif()
  20. if(build_inspect)
  21. add_subdirectory(inspect)
  22. endif()
  23. if(build_reset)
  24. add_subdirectory(reset)
  25. endif()
  26. if(build_web_visualize)
  27. add_subdirectory(web_visualize)
  28. endif()