chore: add cmake for the tests

This commit is contained in:
Amin Yahyaabadi 2025-02-28 23:11:54 -08:00
parent 9a1ed094b0
commit 3883a177d6
2 changed files with 18 additions and 0 deletions

2
.gitignore vendored
View File

@ -22,3 +22,5 @@ coverage
.turbo
/src/llvm/assets/
/build

16
CMakeLists.txt Normal file
View File

@ -0,0 +1,16 @@
cmake_minimum_required(VERSION 3.21...3.28)
project(
setup_cpp_tests
VERSION 0.46.2
DESCRIPTION "Tests for setup-cpp"
HOMEPAGE_URL "https://github.com/aminya/setup-cpp"
LANGUAGES CXX C)
add_subdirectory("./dev/cpp_vcpkg_project")
add_executable(test_gcc ./src/gcc/__tests__/main.cpp)
target_compile_features(test_gcc PRIVATE cxx_std_17)
add_executable(test_llvm ./src/llvm/__tests__/main.cpp)
target_compile_features(test_llvm PRIVATE cxx_std_17)