mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-15 08:34:40 +00:00
update openal
This commit is contained in:
parent
62f3b93ff9
commit
6721a6b021
287 changed files with 33851 additions and 27325 deletions
24
Engine/lib/openal-soft/tests/CMakeLists.txt
Normal file
24
Engine/lib/openal-soft/tests/CMakeLists.txt
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
add_executable(OpenAL_Tests)
|
||||
|
||||
include(FetchContent)
|
||||
FetchContent_Declare(
|
||||
googletest
|
||||
GIT_REPOSITORY https://github.com/google/googletest.git
|
||||
GIT_TAG main
|
||||
)
|
||||
# For Windows: Prevent overriding the parent project's compiler/linker settings
|
||||
set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
|
||||
FetchContent_MakeAvailable(googletest)
|
||||
|
||||
target_link_libraries(OpenAL_Tests PRIVATE
|
||||
OpenAL
|
||||
GTest::gtest_main
|
||||
)
|
||||
|
||||
target_sources(OpenAL_Tests PRIVATE
|
||||
example.t.cpp
|
||||
)
|
||||
|
||||
# This needs to come last
|
||||
include(GoogleTest)
|
||||
gtest_discover_tests(OpenAL_Tests)
|
||||
16
Engine/lib/openal-soft/tests/example.t.cpp
Normal file
16
Engine/lib/openal-soft/tests/example.t.cpp
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
#include <gtest/gtest.h>
|
||||
#include <AL/al.h>
|
||||
|
||||
class ExampleTest : public ::testing::Test {
|
||||
};
|
||||
|
||||
|
||||
TEST_F(ExampleTest, Basic)
|
||||
{
|
||||
// just making sure we compile
|
||||
ALuint source, buffer;
|
||||
ALfloat offset;
|
||||
ALenum state;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue