From: Kovarththanan Rajaratnam Date: Sat, 27 Feb 2010 07:46:49 +0000 (+0000) Subject: Wire up Daniel's new spiffy C interpreter into the CMake build system X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dab10acd5642b7319dd586922728c528c47d3b30;p=clang Wire up Daniel's new spiffy C interpreter into the CMake build system git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97311 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index 04332b7025..d2738c6903 100644 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -1,3 +1,4 @@ +add_subdirectory(clang-interpreter) add_subdirectory(PrintFunctionNames) add_subdirectory(wpa) diff --git a/examples/clang-interpreter/CMakeLists.txt b/examples/clang-interpreter/CMakeLists.txt new file mode 100644 index 0000000000..0f63b5f5b9 --- /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)