diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-01-06 23:42:49 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-01-06 23:42:49 +0000 |
commit | 7c659cc405e750bd22f39bfb511e28145730110d (patch) | |
tree | 352f95b3d2203950920bdc29f69a03253fe2e681 | |
parent | c1824769744d2052963962b2b8cbf0180bd4868b (diff) |
cmake: Add 'examples' target
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225319 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | cmake/modules/AddLLVM.cmake | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cmake/modules/AddLLVM.cmake b/cmake/modules/AddLLVM.cmake index ee55c52df6e..517b828991b 100644 --- a/cmake/modules/AddLLVM.cmake +++ b/cmake/modules/AddLLVM.cmake @@ -513,6 +513,12 @@ macro(add_llvm_example name) install(TARGETS ${name} RUNTIME DESTINATION examples) endif() set_target_properties(${name} PROPERTIES FOLDER "Examples") + + if(NOT TARGET examples) + add_custom_target(examples ${name}) + else() + add_dependencies(examples ${name}) + endif() endmacro(add_llvm_example name) |