The merge from story/release-validation-scope only carried files that existed at the common base or on that branch. In-scope files added on story/release-2-cleanup after the base (per-module unit-test dirs, the Release 2 driver and rpmbuild script) were missing, breaking ADD_SUBDIRECTORY(unit-test) references. - Restore the 33 missing in-scope files from story/release-2-cleanup. - Lts/Common/CMakeLists.txt and LtsUtilsGui/CMakeLists.txt: take the story/release-2-cleanup versions (the validation versions still reference out-of-scope subdirectories: httq, LtsRestClient, LtsWebSocket, ConnectDialog, StyleManager).
20 lines
512 B
CMake
20 lines
512 B
CMake
#
|
|
# Unit tests for the LtsSession module.
|
|
# One test executable per module, each registered with ctest.
|
|
#
|
|
if (NOT BUILD_TESTING)
|
|
return()
|
|
endif()
|
|
|
|
# --- LtsSession: LtsSessionData (session state singleton - pure data logic)
|
|
if (TARGET LtsSession)
|
|
ADD_EXECUTABLE(ltssession_unit_test ltssession_unit_test.cpp)
|
|
TARGET_LINK_LIBRARIES(ltssession_unit_test
|
|
LtsSessionData
|
|
Qt6::Core
|
|
Qt6::Gui
|
|
Qt6::Test
|
|
)
|
|
ADD_TEST(NAME ltssession_unit_test COMMAND $<TARGET_FILE:ltssession_unit_test>)
|
|
endif()
|