Lines Matching refs:name
4 macro(add_llvm_library name)
6 add_library( ${name} ${ALL_FILES} )
7 set_property( GLOBAL APPEND PROPERTY LLVM_LIBS ${name} )
9 add_dependencies( ${name} ${LLVM_COMMON_DEPENDS} )
13 llvm_config( ${name} ${LLVM_LINK_COMPONENTS} )
18 link_system_libs( ${name} )
21 set_target_properties( ${name} PROPERTIES EXCLUDE_FROM_ALL ON)
23 install(TARGETS ${name}
32 add_dependencies(${name} ${CURRENT_LLVM_TARGET})
34 set_target_properties(${name} PROPERTIES FOLDER "Libraries")
35 endmacro(add_llvm_library name)
38 macro(add_llvm_loadable_module name)
41 ${name} ignored.")
43 add_custom_target(${name})
52 add_library( ${name} ${libkind} ${ALL_FILES} )
53 set_target_properties( ${name} PROPERTIES PREFIX "" )
55 llvm_config( ${name} ${LLVM_LINK_COMPONENTS} )
56 link_system_libs( ${name} )
60 set_target_properties(${name} PROPERTIES
65 set_target_properties( ${name} PROPERTIES EXCLUDE_FROM_ALL ON)
67 install(TARGETS ${name}
73 set_target_properties(${name} PROPERTIES FOLDER "Loadable modules")
74 endmacro(add_llvm_loadable_module name)
77 macro(add_llvm_executable name)
80 add_executable(${name} EXCLUDE_FROM_ALL ${ALL_FILES})
82 add_executable(${name} ${ALL_FILES})
85 target_link_libraries( ${name} ${LLVM_USED_LIBS} )
86 llvm_config( ${name} ${LLVM_LINK_COMPONENTS} )
88 add_dependencies( ${name} ${LLVM_COMMON_DEPENDS} )
90 link_system_libs( ${name} )
91 endmacro(add_llvm_executable name)
94 macro(add_llvm_tool name)
99 add_llvm_executable(${name} ${ARGN})
101 install(TARGETS ${name} RUNTIME DESTINATION bin)
103 set_target_properties(${name} PROPERTIES FOLDER "Tools")
104 endmacro(add_llvm_tool name)
107 macro(add_llvm_example name)
112 add_llvm_executable(${name} ${ARGN})
114 install(TARGETS ${name} RUNTIME DESTINATION examples)
116 set_target_properties(${name} PROPERTIES FOLDER "Examples")
117 endmacro(add_llvm_example name)
120 macro(add_llvm_utility name)
121 add_llvm_executable(${name} ${ARGN})
122 set_target_properties(${name} PROPERTIES FOLDER "Utils")
123 endmacro(add_llvm_utility name)