ndsmath provides CMake targets:

    find_package(ndsmath CONFIG REQUIRED)
    target_link_libraries(main PRIVATE ndsmath::ndsmath)
