summaryrefslogtreecommitdiffstats
path: root/examples/clang-interpreter/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'examples/clang-interpreter/CMakeLists.txt')
-rw-r--r--examples/clang-interpreter/CMakeLists.txt30
1 files changed, 30 insertions, 0 deletions
diff --git a/examples/clang-interpreter/CMakeLists.txt b/examples/clang-interpreter/CMakeLists.txt
new file mode 100644
index 0000000..0f63b5f
--- /dev/null
+++ b/examples/clang-interpreter/CMakeLists.txt
@@ -0,0 +1,30 @@
+set(LLVM_NO_RTTI 1)
+
+set(LLVM_USED_LIBS
+ clangFrontend
+ clangDriver
+ clangCodeGen
+ clangSema
+ clangChecker
+ clangAnalysis
+ clangRewrite
+ clangAST
+ clangParse
+ clangLex
+ clangBasic
+ )
+
+set(LLVM_LINK_COMPONENTS
+ jit
+ interpreter
+ nativecodegen
+ bitreader
+ bitwriter
+ ipo
+ selectiondag
+ )
+
+add_clang_executable(clang-interpreter
+ main.cpp
+ )
+add_dependencies(clang-interpreter clang-headers)
OpenPOWER on IntegriCloud