1set (files 2 "opt-diff.py" 3 "opt-stats.py" 4 "opt-viewer.py" 5 "optpmap.py" 6 "optrecord.py" 7 "style.css") 8 9foreach (file ${files}) 10 install(PROGRAMS ${file} 11 DESTINATION "${CMAKE_INSTALL_DATADIR}/opt-viewer" 12 COMPONENT opt-viewer) 13endforeach (file) 14 15add_custom_target(opt-viewer DEPENDS ${files}) 16if(NOT LLVM_ENABLE_IDE) 17 add_llvm_install_targets("install-opt-viewer" 18 DEPENDS opt-viewer 19 COMPONENT opt-viewer) 20endif() 21