2020-10-02 09:59:58 +08:00
|
|
|
add_subdirectory(CAPI)
|
|
|
|
|
2020-08-04 08:41:16 +08:00
|
|
|
llvm_canonicalize_cmake_booleans(
|
|
|
|
NPCOMP_ENABLE_IREE
|
|
|
|
)
|
|
|
|
|
2020-04-27 08:55:15 +08:00
|
|
|
configure_lit_site_cfg(
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/lit.site.cfg.py.in
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/lit.site.cfg.py
|
|
|
|
MAIN_CONFIG
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/lit.cfg.py
|
|
|
|
)
|
|
|
|
|
2020-05-30 07:12:10 +08:00
|
|
|
set(NPCOMP_TEST_DEPENDS
|
2020-04-27 08:55:15 +08:00
|
|
|
FileCheck count not
|
2020-10-02 09:59:58 +08:00
|
|
|
npcomp-capi-ir-test
|
2020-04-27 08:55:15 +08:00
|
|
|
npcomp-opt
|
2020-05-29 07:41:36 +08:00
|
|
|
npcomp-run-mlir
|
2021-07-28 07:10:10 +08:00
|
|
|
NPCOMPPythonModules
|
|
|
|
NPCOMPMLIRPythonModules
|
2020-04-27 08:55:15 +08:00
|
|
|
)
|
|
|
|
|
2020-06-08 05:35:58 +08:00
|
|
|
add_lit_testsuite(check-npcomp-lit "Running the npcomp regression tests"
|
2020-04-27 08:55:15 +08:00
|
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
2020-05-30 07:12:10 +08:00
|
|
|
DEPENDS ${NPCOMP_TEST_DEPENDS}
|
2020-04-27 08:55:15 +08:00
|
|
|
)
|
2020-06-08 05:35:58 +08:00
|
|
|
set_target_properties(check-npcomp-lit PROPERTIES FOLDER "Tests")
|
2020-04-27 08:55:15 +08:00
|
|
|
|
2020-05-30 07:12:10 +08:00
|
|
|
add_lit_testsuites(NPCOMP_OPT ${CMAKE_CURRENT_SOURCE_DIR} DEPENDS ${NPCOMP_TEST_DEPENDS})
|
2020-06-08 05:35:58 +08:00
|
|
|
|
|
|
|
add_dependencies(check-npcomp check-npcomp-lit)
|