JamesYang007 / FastAD

FastAD is a C++ implementation of automatic differentiation both forward and reverse mode.
MIT License
103 stars 3 forks source link

Enable CMake integration with FetchContent #102

Closed jeanchristopheruel closed 1 year ago

jeanchristopheruel commented 1 year ago

It would be very convenient to enable CMake integration with FetchContent like so

include(FetchContent)
FetchContent_Declare(
        FastAD
        GIT_REPOSITORY https://github.com/JamesYang007/FastAD
        GIT_TAG v3.2.1
        GIT_SHALLOW TRUE
        GIT_PROGRESS TRUE)
FetchContent_MakeAvailable(FastAD)

However, it would require to put FASTAD_ENABLE_TEST OFF by default in the CMakeLists.