1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 03:02:36 +01:00

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 8726c80a5f
commit 7d28ae72ac

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)