feat(src/CMakeLists.txt): use CAPD-4.0
add C API
fixup add C API