OLD | NEW |
---|---|
1 include(LLVMParseArguments) | 1 include(LLVMParseArguments) |
2 include(LLVMProcessSources) | 2 include(LLVMProcessSources) |
3 include(LLVM-Config) | 3 include(LLVM-Config) |
4 | 4 |
5 function(llvm_update_compile_flags name) | 5 function(llvm_update_compile_flags name) |
6 get_property(sources TARGET ${name} PROPERTY SOURCES) | 6 get_property(sources TARGET ${name} PROPERTY SOURCES) |
7 if("${sources}" MATCHES "\\.c(;|$)") | 7 if("${sources}" MATCHES "\\.c(;|$)") |
8 set(update_src_props ON) | 8 set(update_src_props ON) |
9 endif() | 9 endif() |
10 | 10 |
(...skipping 482 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
493 if( LLVM_BUILD_EXAMPLES ) | 493 if( LLVM_BUILD_EXAMPLES ) |
494 install(TARGETS ${name} RUNTIME DESTINATION examples) | 494 install(TARGETS ${name} RUNTIME DESTINATION examples) |
495 endif() | 495 endif() |
496 set_target_properties(${name} PROPERTIES FOLDER "Examples") | 496 set_target_properties(${name} PROPERTIES FOLDER "Examples") |
497 endmacro(add_llvm_example name) | 497 endmacro(add_llvm_example name) |
498 | 498 |
499 | 499 |
500 macro(add_llvm_utility name) | 500 macro(add_llvm_utility name) |
501 add_llvm_executable(${name} ${ARGN}) | 501 add_llvm_executable(${name} ${ARGN}) |
502 set_target_properties(${name} PROPERTIES FOLDER "Utils") | 502 set_target_properties(${name} PROPERTIES FOLDER "Utils") |
503 if( LLVM_INSTALL_UTILS ) | |
504 install (TARGETS ${name} | |
505 RUNTIME DESTINATION utils) | |
Derek Schuff
2015/03/18 21:53:32
will this install the utils into the "utils" direc
Mircea Trofin
2015/03/19 00:04:00
Done.
| |
506 endif() | |
503 endmacro(add_llvm_utility name) | 507 endmacro(add_llvm_utility name) |
504 | 508 |
505 | 509 |
506 macro(add_llvm_target target_name) | 510 macro(add_llvm_target target_name) |
507 include_directories(BEFORE | 511 include_directories(BEFORE |
508 ${CMAKE_CURRENT_BINARY_DIR} | 512 ${CMAKE_CURRENT_BINARY_DIR} |
509 ${CMAKE_CURRENT_SOURCE_DIR}) | 513 ${CMAKE_CURRENT_SOURCE_DIR}) |
510 add_llvm_library(LLVM${target_name} ${ARGN}) | 514 add_llvm_library(LLVM${target_name} ${ARGN}) |
511 set( CURRENT_LLVM_TARGET LLVM${target_name} ) | 515 set( CURRENT_LLVM_TARGET LLVM${target_name} ) |
512 endmacro(add_llvm_target) | 516 endmacro(add_llvm_target) |
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
731 endif() | 735 endif() |
732 | 736 |
733 # Produce a specific suffixed check rule. | 737 # Produce a specific suffixed check rule. |
734 add_lit_target(${target} ${comment} | 738 add_lit_target(${target} ${comment} |
735 ${ARG_DEFAULT_ARGS} | 739 ${ARG_DEFAULT_ARGS} |
736 PARAMS ${ARG_PARAMS} | 740 PARAMS ${ARG_PARAMS} |
737 DEPENDS ${ARG_DEPENDS} | 741 DEPENDS ${ARG_DEPENDS} |
738 ARGS ${ARG_ARGS} | 742 ARGS ${ARG_ARGS} |
739 ) | 743 ) |
740 endfunction() | 744 endfunction() |
OLD | NEW |