xref: /llvm-project/offload/tools/offload-tblgen/CMakeLists.txt (revision fd3907ccb583df99e9c19d2fe84e4e7c52d75de9)
1##===----------------------------------------------------------------------===##
2#
3# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4# See https://llvm.org/LICENSE.txt for license information.
5# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6#
7##===----------------------------------------------------------------------===##
8include(TableGen)
9
10set(LLVM_LINK_COMPONENTS Support)
11
12add_tablegen(offload-tblgen OFFLOAD
13  EXPORT OFFLOAD
14  APIGen.cpp
15  EntryPointGen.cpp
16  FuncsGen.cpp
17  GenCommon.hpp
18  Generators.hpp
19  offload-tblgen.cpp
20  PrintGen.cpp
21  RecordTypes.hpp
22  )
23
24set(OFFLOAD_TABLEGEN_EXE "${OFFLOAD_TABLEGEN_EXE}" CACHE INTERNAL "")
25set(OFFLOAD_TABLEGEN_TARGET "${OFFLOAD_TABLEGEN_TARGET}" CACHE INTERNAL "")
26
27