Merge pull request #21995 from chennes/moveBackupPolicy

Extract BackupPolicy class into its own file to facilitate automated testing
This commit is contained in:
Benjamin Nauck
2025-07-12 17:58:14 +02:00
committed by GitHub
35 changed files with 683 additions and 398 deletions

View File

@@ -1,3 +1,3 @@
target_sources(Assembly_tests_run PRIVATE
add_executable(Assembly_tests_run
AssemblyObject.cpp
)

View File

@@ -1,3 +1,4 @@
add_subdirectory(App)
if (NOT FREECAD_USE_EXTERNAL_ONDSELSOLVER)
target_include_directories(Assembly_tests_run PUBLIC
@@ -10,5 +11,3 @@ target_link_libraries(Assembly_tests_run
${Google_Tests_LIBS}
Assembly
)
add_subdirectory(App)

View File

@@ -1,4 +1,4 @@
target_sources(Material_tests_run PRIVATE
add_executable(Material_tests_run
TestMaterialCards.cpp
TestMaterialFilter.cpp
TestMaterialProperties.cpp

View File

@@ -1,7 +1,7 @@
add_subdirectory(App)
target_link_libraries(Material_tests_run
gtest_main
${Google_Tests_LIBS}
Materials
)
add_subdirectory(App)

View File

@@ -1,4 +1,4 @@
target_sources(Measure_tests_run PRIVATE
add_executable(Measure_tests_run
MeasureDistance.cpp
)

View File

@@ -1,7 +1,7 @@
add_subdirectory(App)
target_link_libraries(Measure_tests_run
gtest_main
${Google_Tests_LIBS}
Measure
)
add_subdirectory(App)

View File

@@ -1,9 +1,9 @@
target_compile_definitions(Mesh_tests_run PRIVATE DATADIR="${CMAKE_SOURCE_DIR}/data")
target_sources(Mesh_tests_run PRIVATE
add_executable(Mesh_tests_run
Core/KDTree.cpp
Exporter.cpp
Importer.cpp
Mesh.cpp
MeshFeature.cpp
)
target_compile_definitions(Mesh_tests_run PRIVATE DATADIR="${CMAKE_SOURCE_DIR}/data")

View File

@@ -1,7 +1,7 @@
add_subdirectory(App)
target_link_libraries(Mesh_tests_run
gtest_main
${Google_Tests_LIBS}
Mesh
)
add_subdirectory(App)

View File

@@ -1,4 +1,4 @@
target_sources(MeshPart_tests_run PRIVATE
add_executable(MeshPart_tests_run
MeshPart.cpp
)

View File

@@ -1,7 +1,7 @@
add_subdirectory(App)
target_link_libraries(MeshPart_tests_run
gtest_main
${Google_Tests_LIBS}
MeshPart
)
add_subdirectory(App)

View File

@@ -1,4 +1,4 @@
target_sources(Part_tests_run PRIVATE
add_executable(Part_tests_run
Attacher.cpp
AttachExtension.cpp
BRepMesh.cpp

View File

@@ -1,7 +1,7 @@
add_subdirectory(App)
target_link_libraries(Part_tests_run
gtest_main
${Google_Tests_LIBS}
Part
)
add_subdirectory(App)

View File

@@ -1,5 +1,5 @@
target_sources(PartDesign_tests_run PRIVATE
add_executable(PartDesign_tests_run
BackwardCompatibility.cpp
DatumPlane.cpp
ShapeBinder.cpp

View File

@@ -1,8 +1,8 @@
add_subdirectory(App)
target_link_libraries(PartDesign_tests_run
gtest_main
${Google_Tests_LIBS}
PartDesign
Sketcher
)
add_subdirectory(App)

View File

@@ -1,4 +1,4 @@
target_sources(Points_tests_run PRIVATE
add_executable(Points_tests_run
Points.cpp
PointsFeature.cpp
)

View File

@@ -1,7 +1,7 @@
add_subdirectory(App)
target_link_libraries(Points_tests_run
gtest_main
${Google_Tests_LIBS}
Points
)
add_subdirectory(App)

View File

@@ -1,4 +1,4 @@
target_sources(Sketcher_tests_run PRIVATE
add_executable(Sketcher_tests_run
SketcherTestHelpers.cpp
SketchObject.cpp
SketchObjectChanges.cpp

View File

@@ -1,7 +1,7 @@
add_subdirectory(App)
target_link_libraries(Sketcher_tests_run
gtest_main
${Google_Tests_LIBS}
Sketcher
)
add_subdirectory(App)

View File

@@ -1,4 +1,4 @@
target_sources(Spreadsheet_tests_run PRIVATE
add_executable(Spreadsheet_tests_run
PropertySheet.cpp
RenameProperty.cpp
)

View File

@@ -1,7 +1,7 @@
add_subdirectory(App)
target_link_libraries(Spreadsheet_tests_run
gtest_main
${Google_Tests_LIBS}
Spreadsheet
)
add_subdirectory(App)

View File

@@ -1,8 +1,6 @@
target_sources(
Start_tests_run
PRIVATE
${CMAKE_CURRENT_SOURCE_DIR}/FileUtilities.cpp
${CMAKE_CURRENT_SOURCE_DIR}/ThumbnailSource.cpp
add_executable(Start_tests_run
FileUtilities.cpp
ThumbnailSource.cpp
)
target_include_directories(

View File

@@ -1,3 +1,4 @@
add_subdirectory(App)
target_include_directories(Start_tests_run PUBLIC
${Python3_INCLUDE_DIRS}
@@ -8,5 +9,3 @@ target_link_libraries(Start_tests_run
${Google_Tests_LIBS}
Start
)
add_subdirectory(App)