forked from iml130/iree-template-cpp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
44 lines (34 loc) · 1.82 KB
/
CMakeLists.txt
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
36
37
38
39
40
41
42
43
44
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# 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(simple_embedding)
add_subdirectory(custom_modules)