blob: d08e7e0bfc78f76d5ad290fff47db0a5091fd390 [file]
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
# core/python/BUILD.bazel #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
# #
# To disable autogeneration for this file entirely, delete this header. #
################################################################################
iree_add_all_subdirs()
if(IREE_BUILD_TESTS)
execute_process(
COMMAND
"${Python3_EXECUTABLE}" -B "${CMAKE_CURRENT_SOURCE_DIR}/check_requirements.py"
RESULT_VARIABLE _IREE_CORE_REQUIREMENTS_RESULT
ERROR_VARIABLE _IREE_CORE_REQUIREMENTS_ERROR
OUTPUT_QUIET
ERROR_STRIP_TRAILING_WHITESPACE
)
if(_IREE_CORE_REQUIREMENTS_RESULT EQUAL 0)
iree_local_py_test(
NAME
config_test
SRC
"test/config_test.py"
PACKAGE_DIRS
"${CMAKE_CURRENT_SOURCE_DIR}"
)
iree_local_py_test(
NAME
result_test
SRC
"test/result_test.py"
PACKAGE_DIRS
"${CMAKE_CURRENT_SOURCE_DIR}"
)
iree_local_py_test(
NAME
package_test
SRC
"test/package_test.py"
PACKAGE_DIRS
"${CMAKE_CURRENT_SOURCE_DIR}"
)
else()
message(STATUS "Not adding the iree.core tests: ${_IREE_CORE_REQUIREMENTS_ERROR}")
endif()
endif()
### BAZEL_TO_CMAKE_PRESERVES_ALL_CONTENT_BELOW_THIS_LINE ###