This repository was archived by the owner on Jul 30, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
35 lines (25 loc) · 1.44 KB
/
CMakeLists.txt
File metadata and controls
35 lines (25 loc) · 1.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# 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
# IREE requires a minimum CMake version of 3.13.4
cmake_minimum_required(VERSION 3.13.4)
#-------------------------------------------------------------------------------
# Project configuration
#-------------------------------------------------------------------------------
project(iree-template-cpp VERSION 1.0 LANGUAGES CXX C)
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
# NOTE: The RTTI setting must match what LLVM was compiled with and IREE
# defaults to RTTI disabled in `iree_copts.cmake`.
# RTTI is disabled for `dialect` target, but you may want to consider to
# to pass `-fno-rtti` as a global compile option by adding the line
# add_compile_options(-fno-rtti)
#-------------------------------------------------------------------------------
# Third-party dependencies
#-------------------------------------------------------------------------------
# Extend module path to allow submodules to find AddMLIR
list(APPEND CMAKE_MODULE_PATH "${PROJECT_BINARY_DIR}/lib/cmake/mlir")
add_subdirectory(third_party/iree EXCLUDE_FROM_ALL)
#-------------------------------------------------------------------------------
# Top-level components
#-------------------------------------------------------------------------------
add_subdirectory(iree_simple_embedding)