generated from McMassiveNZ/blank-slate
CI / build (debug, map[compiler:appleclang os:macos-latest]) (push) Canceled after 0s
CI / build (debug, map[compiler:clang os:ubuntu-latest]) (push) Canceled after 0s
CI / build (debug, map[compiler:gcc os:ubuntu-latest]) (push) Canceled after 0s
CI / build (debug, map[compiler:msvc os:windows-latest]) (push) Canceled after 0s
CI / build (release, map[compiler:appleclang os:macos-latest]) (push) Canceled after 0s
CI / build (release, map[compiler:clang os:ubuntu-latest]) (push) Canceled after 0s
CI / build (release, map[compiler:gcc os:ubuntu-latest]) (push) Canceled after 0s
CI / build (release, map[compiler:msvc os:windows-latest]) (push) Canceled after 0s
CI / build (sanitizers, map[compiler:appleclang os:macos-latest]) (push) Canceled after 0s
CI / build (sanitizers, map[compiler:clang os:ubuntu-latest]) (push) Canceled after 0s
CI / build (sanitizers, map[compiler:gcc os:ubuntu-latest]) (push) Canceled after 0s
CI / build (sanitizers, map[compiler:msvc os:windows-latest]) (push) Canceled after 0s
- Add map, find, and around commands with repository root discovery - Stream literal ripgrep searches with match counts and result limits - Add direct subprocess execution and explicit error returns - Disable C++ exceptions and add navigation tests - Support CMake installation and document builds and deployment - Add a reusable agent skill and document skill discovery
28 lines
924 B
CMake
28 lines
924 B
CMake
include_guard()
|
|
|
|
include(FetchContent)
|
|
|
|
set(INSTALL_GTEST OFF CACHE BOOL "Install GoogleTest" FORCE)
|
|
set(gtest_force_shared_crt ON CACHE BOOL "Use the shared MSVC runtime for GoogleTest" FORCE)
|
|
|
|
FetchContent_Declare(
|
|
googletest
|
|
GIT_REPOSITORY https://github.com/google/googletest.git
|
|
GIT_TAG v1.18.0
|
|
GIT_SHALLOW TRUE
|
|
)
|
|
FetchContent_MakeAvailable(googletest)
|
|
set_property(TARGET
|
|
gtest
|
|
gtest_main
|
|
gmock
|
|
gmock_main
|
|
PROPERTY FOLDER third_party/GoogleTest)
|
|
|
|
# GoogleTest adds exception flags of its own; keep it aligned with project targets.
|
|
foreach(_test_dependency IN ITEMS gtest gtest_main gmock gmock_main)
|
|
get_target_property(_test_compile_flags ${_test_dependency} COMPILE_FLAGS)
|
|
string(REGEX REPLACE "[-/]EHsc|[-/]D_HAS_EXCEPTIONS=1|-fexceptions" "" _test_compile_flags "${_test_compile_flags}")
|
|
set_property(TARGET ${_test_dependency} PROPERTY COMPILE_FLAGS "${_test_compile_flags}")
|
|
endforeach()
|