Use an array of 2 instead of a pair
[openal-soft.git] / tests / CMakeLists.txt
blob492587e895ff85f95b099822b2fb9ccd23eccfe2
1 add_executable(OpenAL_Tests)\r
2 \r
3 include(FetchContent)\r
4 FetchContent_Declare(\r
5   googletest\r
6   GIT_REPOSITORY https://github.com/google/googletest.git\r
7   GIT_TAG        main\r
8 )\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
14         OpenAL\r
15         GTest::gtest_main\r
16 )\r
18 target_sources(OpenAL_Tests PRIVATE\r
19 example.t.cpp\r
20 )\r
22 # This needs to come last\r
23 include(GoogleTest)\r
24 gtest_discover_tests(OpenAL_Tests)\r