CMakeLists.txt 662 字节
Newer Older
X
xiaoguoguo626807 已提交
1
add_subdirectory(auto_code_generated)
2 3
add_subdirectory(manual_prim)
add_subdirectory(generated_prim)
X
xiaoguoguo626807 已提交
4

J
Jiabin Yang 已提交
5
if(NOT (NOT WITH_PYTHON AND ON_INFER))
6 7 8
  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)
J
Jiabin Yang 已提交
9 10 11 12 13
  cc_library(
    prim_api
    SRCS all.cc
    DEPS static_utils static_prim_api eager_prim_api eager_api)
else()
14 15
  cc_library(static_prim_api DEPS generated_static_prim_api
                                  manual_static_prim_api)
J
Jiabin Yang 已提交
16 17 18 19 20
  cc_library(
    prim_api
    SRCS all.cc
    DEPS static_utils static_prim_api)
endif()