Simbody provides CMake targets: find_package(Simbody CONFIG REQUIRED) target_link_libraries(main PRIVATE SimTKcommon SimTKmath SimTKsimbody)