Started with gobotrpc autogenerated parser and ctest (not working)

This commit is contained in:
AlexanderHD27
2025-01-19 11:45:41 +01:00
parent 346e6a52b7
commit 33d3dc0608
24 changed files with 409 additions and 55 deletions

View File

@@ -0,0 +1,20 @@
cmake_minimum_required(VERSION 3.28.3)
project(TestingGobotRPCParser)
# GoogleTest requires at least C++23
set(CMAKE_CXX_STANDARD 23)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
# Adding gtest
include(FetchContent)
FetchContent_Declare(
googletest
gcov
URL https://github.com/google/googletest/archive/03597a01ee50ed33e9dfd640b249b4be3799d395.zip
)
FetchContent_MakeAvailable(googletest)
add_executable(TestingGobotRPCParser test/main.cpp)
target_link_libraries(TestingGobotRPCParser gtest_main)