This repository has been archived on 2025-08-26. You can view files and clone it, but cannot push or open issues or pull requests.
Files
enginex_bi_series-sherpa-onnx/.github/scripts/as-cmake-sub-project/CMakeLists.txt
2025-03-06 12:12:56 +08:00

18 lines
605 B
CMake

cmake_minimum_required(VERSION 3.13 FATAL_ERROR)
project(use-of-sherpa-onnx-as-a-sub-project)
if(NOT EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/sherpa-onnx/setup.py")
message(FATAL_ERROR "Please download the source code of sherpa-onnx and put it inside this directory")
endif()
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib")
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib")
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin")
include_directories(./sherpa-onnx)
add_subdirectory(./sherpa-onnx)
add_executable(main main.cc)
target_link_libraries(main sherpa-onnx-core)