1 add_executable(OpenAL_Tests)
\r
3 include(FetchContent)
\r
4 FetchContent_Declare(
\r
6 GIT_REPOSITORY https://github.com/google/googletest.git
\r
9 # For Windows: Prevent overriding the parent project's compiler/linker settings
\r
10 set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
\r
11 FetchContent_MakeAvailable(googletest)
\r
13 target_link_libraries(OpenAL_Tests PRIVATE
\r
18 target_sources(OpenAL_Tests PRIVATE
\r
22 # This needs to come last
\r
24 gtest_discover_tests(OpenAL_Tests)
\r