| # Copyright 2019 The IREE Authors |
| # Licensed under the Apache License v2.0 with LLVM Exceptions. |
| # See https://llvm.org/LICENSE.txt for license information. |
| # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| # Just import if IREE_HOST_BIN_DIR is set (e.g. when cross-compiling). |
| iree_import_binary(NAME iree-c-embed-data) |
| install(IMPORTED_RUNTIME_ARTIFACTS iree-c-embed-data |
| COMPONENT iree-c-embed-data |
| add_executable(iree-c-embed-data) |
| target_sources(iree-c-embed-data PRIVATE iree-c-embed-data-main.cc) |
| set_target_properties(iree-c-embed-data PROPERTIES |
| OUTPUT_NAME iree-c-embed-data |
| RUNTIME_OUTPUT_DIRECTORY "${IREE_BINARY_DIR}/tools" |
| install(TARGETS iree-c-embed-data |
| COMPONENT IREETools-Runtime |
| "iree_c_embed_data_test.cc" |
| iree::testing::gtest_main |