projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Builds llvmc and its examples with CMake.
[oota-llvm.git]
/
tools
/
llvmc
/
CMakeLists.txt
diff --git
a/tools/llvmc/CMakeLists.txt
b/tools/llvmc/CMakeLists.txt
index 10ad5d82009f18ebd4919099d30d86fba7730dc4..ff7cbae4837fa489d459f1848f800e82220575cf 100644
(file)
--- a/
tools/llvmc/CMakeLists.txt
+++ b/
tools/llvmc/CMakeLists.txt
@@
-1,4
+1,8
@@
-
#
add_subdirectory(src)
+add_subdirectory(src)
# TODO: support plugins and user-configured builds.
# See ./doc/LLVMC-Reference.rst "Customizing LLVMC: the compilation graph"
+
+if( LLVM_INCLUDE_EXAMPLES )
+ add_subdirectory(examples)
+endif()