Link tests with ALSA target properly

This commit is contained in:
Dmitry Marakasov
2025-11-24 17:45:20 +03:00
committed by GitHub
parent 6a18fa77fe
commit c8236ddd2b

View File

@@ -14,7 +14,7 @@ endif()
find_package(ALSA REQUIRED)
add_executable(StormLib_test ${TEST_SRC_FILES})
target_link_libraries(StormLib_test storm ${ALSA_LIBRARIES})
target_link_libraries(StormLib_test storm ALSA::ALSA)
install(TARGETS StormLib_test RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
add_test(NAME StormLib_test COMMAND StormLib_test)
add_test(NAME StormLib_test COMMAND StormLib_test)