Lines Matching refs:project

6 # - The generated CMake exports file for ${project} is called ${project}Targets
7 # (except for LLVM where it's called ${project}Exports for legacy reasons).
8 # - The build target for the CMake exports is called ${project}-cmake-exports
11 # project has any exports for a particular ${distribution} (where ${PROJECT}
12 # is the project name in uppercase).
13 # - The ${PROJECT}_CMAKE_DIR variable is computed by ${project}Config.cmake to
16 # for the project's CMake modules.
111 # project. As explained at the top of the file, the project export set for a
112 # distribution is named ${project}{distribution}Targets (except for LLVM where
113 # it's named ${project}{distribution}Exports for legacy reasons). Also set the
114 # ${PROJECT}_${DISTRIBUTION}_HAS_EXPORTS global property to mark the project as
117 # - project: The project to produce the argument for. IMPORTANT: The casing of
118 # this argument should match the casing used by the project's Config.cmake
122 # the EXPORT argument for the target for the project.
125 function(get_target_export_arg target project export_arg_var)
126 string(TOUPPER "${project}" project_upper)
127 if(project STREQUAL "LLVM")
136 set(${export_arg_var} EXPORT ${project}${distribution}${suffix} PARENT_SCOPE)
151 # - project: The project to produce the commands for. IMPORTANT: See the comment
155 function(get_config_exports_includes project includes_var)
156 string(TOUPPER "${project}" project_upper)
157 set(prefix "\${${project_upper}_CMAKE_DIR}/${project}")
158 if(project STREQUAL "LLVM")
177 # The target to install ${distribution} for a project is called
178 # ${project}-${distribution}-cmake-exports, where ${project} is the project name
182 # - project: The project. IMPORTANT: See the comment for get_target_export_arg
184 function(install_distribution_exports project)
185 string(TOUPPER "${project}" project_upper)
186 string(TOLOWER "${project}" project_lower)
187 if(project STREQUAL "LLVM")
199 install(EXPORT ${project}${suffix} DESTINATION "${destination}"
209 install(EXPORT ${project}${distribution}${suffix} DESTINATION "${destination}"