torch-mlir/lib/CMakeLists.txt

38 lines
849 B
CMake
Raw Normal View History

add_subdirectory(Conversion)
2020-04-27 08:20:58 +08:00
add_subdirectory(Dialect)
add_subdirectory(E2E)
################################################################################
# Setup the initialization target.
# This includes conditional dependencies based on whether features are enabled.
################################################################################
set(ALL_DEPENDS)
if(NPCOMP_ENABLE_IREE)
list(APPEND ALL_DEPENDS
iree_tools_init_compiler_modules
iree_tools_init_iree_passes_and_dialects
iree_tools_init_mlir_passes_and_dialects
iree_tools_init_targets
iree_tools_init_xla_dialects
)
endif()
add_mlir_library(NPCOMPInitAll
InitAll.cpp
LINK_LIBS
PRIVATE
# Local depends
NPCOMPE2E
NPCOMPTCP
NPCOMPTCF
NPCOMPNpcompRt
NPCOMPBasicpyDialect
NPCOMPBasicpyPasses
NPCOMPNumpyDialect
${ALL_DEPENDS}
)