Commit f846ad0
committed
fix: update test CMakeLists for role models
1. Added rolecombinemodel.h and rolecombinemodel.cpp source files to
rolecombinemodel_tests target
2. Added rolegroupmodel.h and rolegroupmodel.cpp source files to
rolegroupmodel_tests target
3. Added Qt${QT_VERSION_MAJOR}::Gui dependency to both test targets
4. Removed dock-taskmanager library dependency from
rolecombinemodel_tests
5. Commented out dock-taskmanager library dependency from
rolegroupmodel_tests
These changes fix the test build configuration by including the actual
source files directly in the test targets instead of linking against the
dock-taskmanager library. This ensures the tests can properly compile
and link the rolecombinemodel and rolegroupmodel implementations. The Qt
Gui module was added as a dependency since these models likely require
GUI components.
Influence:
1. Verify that rolecombinemodel_tests and rolegroupmodel_tests can be
built successfully
2. Test that all unit tests pass after the build configuration changes
3. Ensure no linking errors occur due to missing dependencies
4. Confirm that the test executables run without crashes
fix: 更新角色模型的测试CMakeLists配置
1. 将rolecombinemodel.h和rolecombinemodel.cpp源文件添加到
rolecombinemodel_tests目标
2. 将rolegroupmodel.h和rolegroupmodel.cpp源文件添加到
rolegroupmodel_tests目标
3. 为两个测试目标添加Qt${QT_VERSION_MAJOR}::Gui依赖
4. 从rolecombinemodel_tests中移除dock-taskmanager库依赖
5. 从rolegroupmodel_tests中注释掉dock-taskmanager库依赖
这些更改修复了测试构建配置,通过直接将实际源文件包含在测试目标中,而不
是链接到dock-taskmanager库。这确保测试能够正确编译和链接rolecombinemodel
和rolegroupmodel的实现。添加了Qt Gui模块依赖,因为这些模型可能需要GUI
组件。
Influence:
1. 验证rolecombinemodel_tests和rolegroupmodel_tests能够成功构建
2. 测试构建配置更改后所有单元测试是否通过
3. 确保不会因缺少依赖而发生链接错误
4. 确认测试可执行文件运行不会崩溃1 parent d84337c commit f846ad0
1 file changed
+7
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
11 | 13 | | |
12 | 14 | | |
13 | 15 | | |
| |||
19 | 21 | | |
20 | 22 | | |
21 | 23 | | |
| 24 | + | |
22 | 25 | | |
23 | | - | |
24 | 26 | | |
25 | 27 | | |
26 | 28 | | |
| |||
29 | 31 | | |
30 | 32 | | |
31 | 33 | | |
| 34 | + | |
| 35 | + | |
32 | 36 | | |
33 | 37 | | |
34 | 38 | | |
35 | 39 | | |
36 | 40 | | |
37 | 41 | | |
38 | 42 | | |
| 43 | + | |
39 | 44 | | |
40 | | - | |
| 45 | + | |
41 | 46 | | |
42 | 47 | | |
43 | 48 | | |
| |||
0 commit comments