UR components cmake

This commit is contained in:
kradchen
2023-05-30 13:03:23 +08:00
parent d311a1586d
commit 14b00cbd39

View File

@@ -1,17 +1,18 @@
add_library(URDepends SHARED IMPORTED)
get_filename_component(CURRENT_DIR "${CMAKE_CURRENT_LIST_DIR}" PATH)
get_filename_component(_DIR "${CURRENT_DIR}" PATH)
get_filename_component(_DIR "${CMAKE_CURRENT_LIST_DIR}" PATH)
set(URDepends_INCLUDES_DIRS "${_DIR}/include")
add_library(URDepends SHARED IMPORTED)
set_target_properties(URDepends PROPERTIES IMPORTED_LOCATION
"${_DIR}/lib/libeikonalGPU.so"
"${_DIR}/lib/libFastMatching.so"
"${_DIR}/lib/libSaftATT.so"
"${_DIR}/lib/libSaftTofi.so"
"${_DIR}/lib/libsignalProcess.so"
"${_DIR}/lib/libTranDetection.so"
"${_DIR}/lib/libTVALGPU.so"
)
add_library(URDepends::eikonal SHARED IMPORTED)
set_target_properties(URDepends::eikonal PROPERTIES IMPORTED_LOCATION "${_DIR}/lib/libeikonalGPU.so")
add_library(URDepends::FastMatching SHARED IMPORTED)
set_target_properties(URDepends::FastMatching PROPERTIES IMPORTED_LOCATION "${_DIR}/lib/libFastMatching.so")
add_library(URDepends::SaftATT SHARED IMPORTED)
set_target_properties(URDepends::SaftATT PROPERTIES IMPORTED_LOCATION "${_DIR}/lib/libSaftATT.so")
add_library(URDepends::SaftTofi SHARED IMPORTED)
set_target_properties(URDepends::SaftTofi PROPERTIES IMPORTED_LOCATION "${_DIR}/lib/libSaftTofi.so")
add_library(URDepends::SignalProcess SHARED IMPORTED)
set_target_properties(URDepends::SignalProcess PROPERTIES IMPORTED_LOCATION "${_DIR}/lib/libsignalProcess.so")
add_library(URDepends::TransDetection SHARED IMPORTED)
set_target_properties(URDepends::TransDetection PROPERTIES IMPORTED_LOCATION "${_DIR}/lib/libTranDetection.so")
add_library(URDepends::TVALGPU SHARED IMPORTED)
set_target_properties(URDepends::TVALGPU PROPERTIES IMPORTED_LOCATION "${_DIR}/lib/libeiTVALGPU.so")
set(URDepends_FOUND ON)
message(URDepends Found)