From 3883a177d61b71ea9ca770f2910b6aa2b229cefc Mon Sep 17 00:00:00 2001 From: Amin Yahyaabadi Date: Fri, 28 Feb 2025 23:11:54 -0800 Subject: [PATCH] chore: add cmake for the tests --- .gitignore | 2 ++ CMakeLists.txt | 16 ++++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 CMakeLists.txt diff --git a/.gitignore b/.gitignore index d58ec671..45718ae8 100644 --- a/.gitignore +++ b/.gitignore @@ -22,3 +22,5 @@ coverage .turbo /src/llvm/assets/ + +/build diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 00000000..21f28aed --- /dev/null +++ b/CMakeLists.txt @@ -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)