Test: Add googletest; Add qutex_tests.cpp

Well, we now have this.
This commit is contained in:
2025-09-20 19:41:57 -04:00
parent 329d57a16d
commit 31cadb2ee4
6 changed files with 381 additions and 0 deletions
+12
View File
@@ -26,6 +26,8 @@ math(EXPR MIND_VOSCILLATOR_FREQ_MS "1000 / ${MIND_VOSCILLATOR_PERIOD_MS}")
# World thread configuration
option(WORLD_USE_BODY_THREAD
"Use body thread for world component instead of separate world thread" OFF)
# Test configuration
option(ENABLE_TESTS "Enable building tests" OFF)
# Configure config.h
configure_file(
@@ -56,6 +58,10 @@ if(NOT DL_LIBRARY)
message(FATAL_ERROR "Dynamic linking library (libdl/libldl) not found")
endif()
# Add third-party dependencies
if(ENABLE_TESTS)
add_subdirectory(third_party)
endif()
# Add core components
add_subdirectory(smocore)
add_subdirectory(commonLibs)
@@ -74,6 +80,12 @@ target_link_libraries(salmanoff
# Add all registered DAPSS targets as dependencies
add_all_daps_dependencies()
# Add tests if enabled
if(ENABLE_TESTS)
enable_testing()
add_subdirectory(tests)
endif()
install(TARGETS salmanoff DESTINATION bin)
# Install device configuration files (preprocessed .daps files)