cmake: Add 'examples' target

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225319 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Duncan P. N. Exon Smith 2015-01-06 23:42:49 +00:00
parent c182476974
commit 7c659cc405

View File

@ -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)