add_enzyme_library(algorithm1-surf      SHARED  algorithm1.cpp)
add_enzyme_library(algorithm1-ptracer   SHARED  algorithm1_ptracer.cpp)
add_enzyme_library(algorithm1-bdpt      SHARED  algorithm1_bdpt.cpp)
# add_enzyme_library(algorithm1-vol       SHARED  volume/forward.cpp 
#                                                 volume/d_get_point.cpp 
#                                                 volume/d_eval_vertex.cpp 
#                                                 volume/d_eval_path.cpp
#                                                 algorithm1_vol.cpp)
add_subdirectory(volume)
add_library(algorithm1 INTERFACE)
target_link_libraries(algorithm1 INTERFACE
    algorithm1-surf
    algorithm1-ptracer
    algorithm1-bdpt
    algorithm1-vol)