Changeset View
Changeset View
Standalone View
Standalone View
modules/ECMFindModuleHelpers.cmake
Show First 20 Lines • Show All 259 Lines • ▼ Show 20 Line(s) | 259 | mark_as_advanced( | |||
---|---|---|---|---|---|
260 | ${module_name}_${ecm_fpwc_comp}_LIBRARY | 260 | ${module_name}_${ecm_fpwc_comp}_LIBRARY | ||
261 | ${module_name}_${ecm_fpwc_comp}_INCLUDE_DIR | 261 | ${module_name}_${ecm_fpwc_comp}_INCLUDE_DIR | ||
262 | ) | 262 | ) | ||
263 | 263 | | |||
264 | if(${module_name}_${ecm_fpwc_comp}_FOUND) | 264 | if(${module_name}_${ecm_fpwc_comp}_FOUND) | ||
265 | list(APPEND ${module_name}_LIBRARIES | 265 | list(APPEND ${module_name}_LIBRARIES | ||
266 | "${${module_name}_${ecm_fpwc_comp}_LIBRARY}") | 266 | "${${module_name}_${ecm_fpwc_comp}_LIBRARY}") | ||
267 | list(APPEND ${module_name}_INCLUDE_DIRS | 267 | list(APPEND ${module_name}_INCLUDE_DIRS | ||
268 | "${${module_name}_${ecm_fpwc_comp}_INCLUDE_DIR}") | 268 | "${PKG_${module_name}_${ecm_fpwc_comp}_INCLUDE_DIRS}") | ||
269 | set(${module_name}_DEFINITIONS | 269 | set(${module_name}_DEFINITIONS | ||
270 | ${${module_name}_DEFINITIONS} | 270 | ${${module_name}_DEFINITIONS} | ||
271 | ${PKG_${module_name}_${ecm_fpwc_comp}_DEFINITIONS}) | 271 | ${PKG_${module_name}_${ecm_fpwc_comp}_DEFINITIONS}) | ||
272 | if(NOT TARGET ${module_name}::${ecm_fpwc_comp}) | 272 | if(NOT TARGET ${module_name}::${ecm_fpwc_comp}) | ||
273 | add_library(${module_name}::${ecm_fpwc_comp} UNKNOWN IMPORTED) | 273 | add_library(${module_name}::${ecm_fpwc_comp} UNKNOWN IMPORTED) | ||
274 | set_target_properties(${module_name}::${ecm_fpwc_comp} PROPERTIES | 274 | set_target_properties(${module_name}::${ecm_fpwc_comp} PROPERTIES | ||
275 | IMPORTED_LOCATION "${${module_name}_${ecm_fpwc_comp}_LIBRARY}" | 275 | IMPORTED_LOCATION "${${module_name}_${ecm_fpwc_comp}_LIBRARY}" | ||
276 | INTERFACE_COMPILE_OPTIONS "${PKG_${module_name}_${ecm_fpwc_comp}_DEFINITIONS}" | 276 | INTERFACE_COMPILE_OPTIONS "${PKG_${module_name}_${ecm_fpwc_comp}_DEFINITIONS}" | ||
277 | INTERFACE_INCLUDE_DIRECTORIES "${${module_name}_${ecm_fpwc_comp}_INCLUDE_DIR}" | 277 | INTERFACE_INCLUDE_DIRECTORIES "${PKG_${module_name}_${ecm_fpwc_comp}_INCLUDE_DIRS}" | ||
278 | INTERFACE_LINK_LIBRARIES "${ecm_fpwc_dep_targets}" | 278 | INTERFACE_LINK_LIBRARIES "${ecm_fpwc_dep_targets}" | ||
279 | ) | 279 | ) | ||
280 | endif() | 280 | endif() | ||
281 | list(APPEND ${module_name}_TARGETS | 281 | list(APPEND ${module_name}_TARGETS | ||
282 | "${module_name}::${ecm_fpwc_comp}") | 282 | "${module_name}::${ecm_fpwc_comp}") | ||
283 | endif() | 283 | endif() | ||
284 | endforeach() | 284 | endforeach() | ||
285 | if(${module_name}_LIBRARIES) | 285 | if(${module_name}_LIBRARIES) | ||
Show All 12 Lines |