github.com/kaydxh/golang@v0.0.131/pkg/gocv/cgo/api/openapi-spec/CMakeLists.txt (about)

     1  add_custom_target(openapi-spec)
     2  
     3  find_package(Protobuf)
     4  
     5  if (EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/thirdparty.srv.cmake)
     6     include(${CMAKE_CURRENT_SOURCE_DIR}/thirdparty.srv.cmake)
     7  endif ()
     8  
     9  GET_MODEL_DIRS(${CMAKE_CURRENT_SOURCE_DIR} _module_dirs)
    10  FOREACH (_module_dir ${_module_dirs})
    11      if (EXISTS ${_module_dir})
    12        file(RELATIVE_PATH _rel_module_dir ${CMAKE_CURRENT_SOURCE_DIR} ${_module_dir})
    13        message(STATUS "add_subdirectory=${_rel_module_dir}")
    14        add_subdirectory(${_rel_module_dir})
    15        # add_dependencies(openapi-spec proto-${_rel_module_dir})
    16      endif()
    17  ENDFOREACH ()