27 lines
No EOL
874 B
CMake
27 lines
No EOL
874 B
CMake
# Load the debug and release variables
|
|
get_filename_component(_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
|
|
file(GLOB DATA_FILES "${_DIR}/xorg-*-data.cmake")
|
|
|
|
foreach(f ${DATA_FILES})
|
|
include(${f})
|
|
endforeach()
|
|
|
|
# Create the targets for all the components
|
|
foreach(_COMPONENT ${xorg_COMPONENT_NAMES} )
|
|
if(NOT TARGET ${_COMPONENT})
|
|
add_library(${_COMPONENT} INTERFACE IMPORTED)
|
|
message(${xorg_MESSAGE_MODE} "Conan: Component target declared '${_COMPONENT}'")
|
|
endif()
|
|
endforeach()
|
|
|
|
if(NOT TARGET xorg::xorg)
|
|
add_library(xorg::xorg INTERFACE IMPORTED)
|
|
message(${xorg_MESSAGE_MODE} "Conan: Target declared 'xorg::xorg'")
|
|
endif()
|
|
# Load the debug and release library finders
|
|
get_filename_component(_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
|
|
file(GLOB CONFIG_FILES "${_DIR}/xorg-Target-*.cmake")
|
|
|
|
foreach(f ${CONFIG_FILES})
|
|
include(${f})
|
|
endforeach() |