Files
cpp-project-template/CMakeLists.txt
tqcq 3d395b45f0
All checks were successful
sm-rpc / build (Debug, arm-linux-gnueabihf) (push) Successful in 1m11s
sm-rpc / build (Debug, aarch64-linux-gnu) (push) Successful in 1m25s
sm-rpc / build (Debug, host.gcc) (push) Successful in 1m2s
sm-rpc / build (Debug, mipsel-linux-gnu) (push) Successful in 1m25s
sm-rpc / build (Release, aarch64-linux-gnu) (push) Successful in 1m32s
sm-rpc / build (Release, arm-linux-gnueabihf) (push) Successful in 1m39s
sm-rpc / build (Release, host.gcc) (push) Successful in 1m22s
sm-rpc / build (Release, mipsel-linux-gnu) (push) Successful in 1m32s
feat(cmake): 增加一些常用工具
2025-08-19 19:08:31 +08:00

17 lines
392 B
CMake

cmake_minimum_required(VERSION 3.10)
project(demo LANGUAGES C CXX)
if(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
endif()
include(cmake/generic.cmake)
add_subdirectory(third_party/oatpp)
add_subdirectory(third_party/googletest)
add_subdirectory(third_party/benchmark)
enable_testing()
cc_test(calc_test SRCS src/calc_test.cc DEPS)
cc_benchmark(calc_benchmark SRCS src/calc_benchmark.cc DEPS)