- Move existing OndselSolver, GNN ML layer, and tooling into GNN/ directory for integration in later phases - Add Create addon scaffold: package.xml, Init.py - Add expression DAG with eval, symbolic diff, simplification - Add parameter table with fixed/free variable tracking - Add quaternion rotation as polynomial Expr trees - Add RigidBody entity (7 DOF: position + unit quaternion) - Add constraint classes: Coincident, DistancePointPoint, Fixed - Add Newton-Raphson solver with symbolic Jacobian + numpy lstsq - Add pre-solve passes: substitution + single-equation - Add DOF counting via Jacobian SVD rank - Add KindredSolver IKCSolver bridge for kcsolve integration - Add 82 unit tests covering all modules Registers as 'kindred' solver via kcsolve.register_solver() when loaded by Create's addon_loader.
34 lines
1.1 KiB
CMake
34 lines
1.1 KiB
CMake
cmake_minimum_required(VERSION 3.16)
|
|
|
|
project(OndselSolver VERSION 1.0.1 DESCRIPTION "Assembly Constraints and Multibody Dynamics code")
|
|
|
|
set(CMAKE_CXX_STANDARD 17)
|
|
set(CMAKE_CXX_STANDARD_REQUIRED True)
|
|
|
|
option(ONDSELSOLVER_BUILD_TESTS "Set to ON to build the Google Test-based C++ test suite." OFF)
|
|
option(ONDSELSOLVER_BUILD_EXE "Set to ON to build the standalone OndselSolver executable." OFF)
|
|
|
|
include(GNUInstallDirs)
|
|
|
|
if( UNIX )
|
|
set( ONDSELSOLVER_BUILD_SHARED ON )
|
|
ELSEIF ( APPLE )
|
|
set( ONDSELSOLVER_BUILD_SHARED ON )
|
|
ELSE()
|
|
set( ONDSELSOLVER_BUILD_SHARED OFF )
|
|
ENDIF ()
|
|
|
|
add_compile_definitions(TEST_DATA_PATH="${CMAKE_CURRENT_SOURCE_DIR}/testapp")
|
|
add_subdirectory(OndselSolver)
|
|
if(ONDSELSOLVER_BUILD_EXE)
|
|
add_subdirectory(OndselSolverMain)
|
|
set_property(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/OndselSolverMain PROPERTY VS_STARTUP_PROJECT OndselSolverMain)
|
|
endif()
|
|
|
|
if(ONDSELSOLVER_BUILD_TESTS)
|
|
include(CTest)
|
|
enable_testing()
|
|
add_subdirectory(tests)
|
|
target_compile_definitions(test_run PUBLIC TEST_DATA_PATH="${CMAKE_CURRENT_SOURCE_DIR}/testapp")
|
|
endif()
|