2025-09-20 19:41:57 -04:00
|
|
|
# Create a test executable for qutex
|
|
|
|
|
add_executable(qutex_tests smocore/qutex_tests.cpp)
|
|
|
|
|
|
|
|
|
|
# Link against Google Test and the smocore library
|
|
|
|
|
target_link_libraries(qutex_tests
|
|
|
|
|
gtest_main
|
|
|
|
|
smocore
|
|
|
|
|
${Boost_LIBRARIES}
|
|
|
|
|
${DL_LIBRARY}
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
# Ensure Google Test is built before our test executable
|
|
|
|
|
add_dependencies(qutex_tests gtest_main)
|
|
|
|
|
|
|
|
|
|
# Add the test to CTest
|
|
|
|
|
add_test(NAME qutex_tests COMMAND qutex_tests)
|
2025-11-19 03:12:43 -04:00
|
|
|
|
|
|
|
|
# Create a test executable for StagingBuffer
|
|
|
|
|
add_executable(stagingBuffer_tests commonLibs/attachmentSupport/stagingBuffer_tests.cpp)
|
|
|
|
|
|
|
|
|
|
# Link against Google Test and the attachmentSupport library
|
|
|
|
|
target_link_libraries(stagingBuffer_tests
|
|
|
|
|
gtest_main
|
|
|
|
|
attachmentSupport
|
|
|
|
|
${Boost_LIBRARIES}
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
# Ensure Google Test is built before our test executable
|
|
|
|
|
add_dependencies(stagingBuffer_tests gtest_main)
|
|
|
|
|
|
|
|
|
|
# Add the test to CTest
|
|
|
|
|
add_test(NAME stagingBuffer_tests COMMAND stagingBuffer_tests)
|