cmake: Add 'examples' target

llvm-svn: 225319
This commit is contained in:
Duncan P. N. Exon Smith 2015-01-06 23:42:49 +00:00
parent 9e93701b57
commit 34057d0bac
1 changed files with 6 additions and 0 deletions

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)