At the application level, support the existence of subdirectories inside the original config and data paths for a specific version of the software. For a new installation, create them, but for an existing installation use the most recent available version, even if it's not the current one (and even if it's not versioned at all). Any migration must be done at the GUI level due to the amount of data that is potentially being copied during that process.
36 lines
845 B
CMake
36 lines
845 B
CMake
add_executable(App_tests_run
|
|
Application.cpp
|
|
ApplicationDirectories.cpp
|
|
BackupPolicy.cpp
|
|
Branding.cpp
|
|
ComplexGeoData.cpp
|
|
Document.cpp
|
|
DocumentObject.cpp
|
|
DocumentObserver.cpp
|
|
Expression.cpp
|
|
ExpressionParser.cpp
|
|
ElementMap.cpp
|
|
ElementNamingUtils.cpp
|
|
IndexedName.cpp
|
|
License.cpp
|
|
MappedElement.cpp
|
|
MappedName.cpp
|
|
Metadata.cpp
|
|
ProjectFile.cpp
|
|
Property.h
|
|
Property.cpp
|
|
PropertyExpressionEngine.cpp
|
|
StringHasher.cpp
|
|
VarSet.cpp
|
|
VRMLObject.cpp
|
|
)
|
|
|
|
target_compile_definitions(App_tests_run PRIVATE DATADIR="${CMAKE_SOURCE_DIR}/data")
|
|
|
|
target_link_libraries(App_tests_run PRIVATE
|
|
GTest::gtest_main
|
|
GTest::gmock_main
|
|
${Google_Tests_LIBS}
|
|
FreeCADApp
|
|
)
|