add_subdirectory(auto_code_generated)
add_subdirectory(manual_prim) add_subdirectory(generated_prim)
if(NOT (NOT WITH_PYTHON AND ON_INFER))
cc_library(eager_prim_api DEPS generated_eager_prim_api manual_eager_prim_api) cc_library(static_prim_api DEPS generated_static_prim_api manual_static_prim_api)
cc_library( prim_api SRCS all.cc DEPS static_utils static_prim_api eager_prim_api eager_api) else()
cc_library(static_prim_api DEPS generated_static_prim_api manual_static_prim_api)
cc_library( prim_api SRCS all.cc DEPS static_utils static_prim_api) endif()