Revision control

++ # Copyright (C) 2026 The Qt Company Ltd.
++ # SPDX-License-Identifier: BSD-3-Clause
++
++ cmake_minimum_required(VERSION 3.16)
++
++ find_program(OPENAPI_GO_EXECUTABLE NAMES go)
++
++ if (NOT OPENAPI_GO_EXECUTABLE)
++ message(WARNING "Go (golang) is not installed or not in the PATH.")
++ return()
++ endif()
++
++ include(../../common/BuildGoExecutable.cmake)
++
++ set(GO_BINARY nested-server-app)
++ set(GO_SOURCE main.go)
++
++ build_go_executable(${GO_BINARY} ${GO_SOURCE})
++
++ # Custom target that depends on the output binary
++ add_custom_target(nested-server-build ALL
++ DEPENDS ${GO_BINARY}
++ )
++
++ add_executable(nested-server-go IMPORTED)
++ add_dependencies(nested-server-go nested-server-build)
++ set_target_properties(nested-server-go PROPERTIES
++ IMPORTED_LOCATION
++ "${CMAKE_CURRENT_BINARY_DIR}/nested-server-app"
++ IMPORTED_GLOBAL TRUE
++ )