32 lines
728 B
CMake
32 lines
728 B
CMake
# ============================================================
|
|
# AudioClip Tests
|
|
# ============================================================
|
|
|
|
set(AUDIOCLIP_TEST_SOURCES
|
|
test_audio_clip.cpp
|
|
test_audio_loader.cpp
|
|
)
|
|
|
|
add_executable(audioclip_tests ${AUDIOCLIP_TEST_SOURCES})
|
|
|
|
if(MSVC)
|
|
set_target_properties(audioclip_tests PROPERTIES
|
|
LINK_FLAGS "/NODEFAULTLIB:libcpmt.lib /NODEFAULTLIB:libcmt.lib"
|
|
)
|
|
endif()
|
|
|
|
target_link_libraries(audioclip_tests
|
|
PRIVATE
|
|
XCEngine
|
|
GTest::gtest
|
|
GTest::gtest_main
|
|
)
|
|
|
|
target_include_directories(audioclip_tests PRIVATE
|
|
${CMAKE_SOURCE_DIR}/engine/include
|
|
${CMAKE_SOURCE_DIR}/tests/Fixtures
|
|
)
|
|
|
|
include(GoogleTest)
|
|
gtest_discover_tests(audioclip_tests)
|