Add minimal C++ example and pass PR policy checks
sandbox/pipeline/pr-main There was a failure building this commit

This commit is contained in:
torsten committed 2026-08-04 19:57:01 +02:00
1 parent 58c3cd0559
commit 684ad1cd3a
4 files changed
+34 -11

No files matched your search

+17
View File
@@ -1,5 +1,22 @@
cmake_minimum_required(VERSION 3.20)
project(sandbox LANGUAGES CXX)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
add_executable(sandbox main.cpp)
enable_testing()
include(FetchContent)
FetchContent_Declare(
googletest
URL https://github.com/google/googletest/archive/refs/tags/v1.14.0.zip
)
set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
FetchContent_MakeAvailable(googletest)
add_executable(test_main tests/test_main.cpp)
target_link_libraries(test_main GTest::gtest_main)