CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
69 lines
2.3 KiB
CMake
69 lines
2.3 KiB
CMake
# Traverse from lib/cmake/FOO -> the directory holding lib
|
|
get_filename_component(_IMPORT_PREFIX "${CMAKE_CURRENT_LIST_DIR}" PATH)
|
|
get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
|
|
get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
|
|
if(_IMPORT_PREFIX STREQUAL "/")
|
|
set(_IMPORT_PREFIX "")
|
|
endif()
|
|
|
|
# Core libnl library
|
|
if(NOT TARGET libnl::libnl)
|
|
add_library(libnl::libnl SHARED IMPORTED)
|
|
set_target_properties(libnl::libnl PROPERTIES
|
|
INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include"
|
|
IMPORTED_LOCATION "${_IMPORT_PREFIX}/lib/libnl-3.so"
|
|
)
|
|
endif()
|
|
|
|
# Generic netlink library (depends on core)
|
|
if(NOT TARGET libnl::genl)
|
|
add_library(libnl::genl SHARED IMPORTED)
|
|
set_target_properties(libnl::genl PROPERTIES
|
|
INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include"
|
|
IMPORTED_LOCATION "${_IMPORT_PREFIX}/lib/libnl-genl-3.so"
|
|
INTERFACE_LINK_LIBRARIES "libnl::libnl"
|
|
)
|
|
endif()
|
|
|
|
# Route library (depends on core)
|
|
if(NOT TARGET libnl::route)
|
|
add_library(libnl::route SHARED IMPORTED)
|
|
set_target_properties(libnl::route PROPERTIES
|
|
INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include"
|
|
IMPORTED_LOCATION "${_IMPORT_PREFIX}/lib/libnl-route-3.so"
|
|
INTERFACE_LINK_LIBRARIES "libnl::libnl"
|
|
)
|
|
endif()
|
|
|
|
# Inet diag library (depends on core)
|
|
if(NOT TARGET libnl::idiag)
|
|
add_library(libnl::idiag SHARED IMPORTED)
|
|
set_target_properties(libnl::idiag PROPERTIES
|
|
INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include"
|
|
IMPORTED_LOCATION "${_IMPORT_PREFIX}/lib/libnl-idiag-3.so"
|
|
INTERFACE_LINK_LIBRARIES "libnl::libnl"
|
|
)
|
|
endif()
|
|
|
|
# Netfilter library (depends on core and route)
|
|
if(NOT TARGET libnl::nf)
|
|
add_library(libnl::nf SHARED IMPORTED)
|
|
set_target_properties(libnl::nf PROPERTIES
|
|
INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include"
|
|
IMPORTED_LOCATION "${_IMPORT_PREFIX}/lib/libnl-nf-3.so"
|
|
INTERFACE_LINK_LIBRARIES "libnl::libnl;libnl::route"
|
|
)
|
|
endif()
|
|
|
|
# XFRM library (depends on core)
|
|
if(NOT TARGET libnl::xfrm)
|
|
add_library(libnl::xfrm SHARED IMPORTED)
|
|
set_target_properties(libnl::xfrm PROPERTIES
|
|
INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include"
|
|
IMPORTED_LOCATION "${_IMPORT_PREFIX}/lib/libnl-xfrm-3.so"
|
|
INTERFACE_LINK_LIBRARIES "libnl::libnl"
|
|
)
|
|
endif()
|
|
|
|
set(_IMPORT_PREFIX)
|