]> git.proxmox.com Git - ceph.git/blame - ceph/src/jaegertracing/opentelemetry-cpp/tools/vcpkg/ports/tensorflow-common/tensorflow-config-static.cmake.in
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / jaegertracing / opentelemetry-cpp / tools / vcpkg / ports / tensorflow-common / tensorflow-config-static.cmake.in
CommitLineData
1e59de90
TL
1if(TARGET tensorflow@TF_LIB_SUFFIX@::tensorflow@TF_LIB_SUFFIX@)
2 return()
3endif()
4
5add_library(tensorflow@TF_LIB_SUFFIX@::tensorflow@TF_LIB_SUFFIX@ STATIC IMPORTED GLOBAL)
6
7# Compute the installation prefix from this tensorflow@TF_PORT_SUFFIX@-config.cmake file location.
8# CMAKE_CURRENT_LIST_DIR = [vcpkg_installed_dir]/[target_triplet]/share/tensorflow@TF_PORT_SUFFIX@
9get_filename_component(TENSORFLOW_INSTALL_PREFIX "${CMAKE_CURRENT_LIST_DIR}" DIRECTORY)
10# TENSORFLOW_INSTALL_PREFIX = [vcpkg_installed_dir]/[target_triplet]/share
11get_filename_component(TENSORFLOW_INSTALL_PREFIX "${TENSORFLOW_INSTALL_PREFIX}" DIRECTORY)
12# TENSORFLOW_INSTALL_PREFIX = [vcpkg_installed_dir]/[target_triplet]
13
14target_include_directories(tensorflow@TF_LIB_SUFFIX@::tensorflow@TF_LIB_SUFFIX@
15 INTERFACE
16 @TF_INCLUDE_DIRS@
17)
18
19if(@TENSORFLOW_HAS_RELEASE@)
20 set_property(TARGET tensorflow@TF_LIB_SUFFIX@::tensorflow@TF_LIB_SUFFIX@
21 PROPERTY IMPORTED_LOCATION
22 "${TENSORFLOW_INSTALL_PREFIX}/lib/@TF_LIB_NAME@"
23 )
24
25 set_property(TARGET tensorflow@TF_LIB_SUFFIX@::tensorflow@TF_LIB_SUFFIX@
26 APPEND PROPERTY IMPORTED_CONFIGURATIONS
27 RELEASE
28 )
29
30 set_property(TARGET tensorflow@TF_LIB_SUFFIX@::tensorflow@TF_LIB_SUFFIX@
31 PROPERTY IMPORTED_LOCATION_RELEASE
32 "${TENSORFLOW_INSTALL_PREFIX}/lib/@TF_LIB_NAME@"
33 )
34endif()
35
36if(@TENSORFLOW_HAS_DEBUG@)
37 if(NOT @TENSORFLOW_HAS_RELEASE@)
38 set_property(TARGET tensorflow@TF_LIB_SUFFIX@::tensorflow@TF_LIB_SUFFIX@
39 PROPERTY IMPORTED_LOCATION
40 "${TENSORFLOW_INSTALL_PREFIX}/debug/lib/@TF_LIB_NAME@"
41 )
42 endif()
43
44 set_property(TARGET tensorflow@TF_LIB_SUFFIX@::tensorflow@TF_LIB_SUFFIX@
45 APPEND PROPERTY IMPORTED_CONFIGURATIONS
46 DEBUG
47 )
48
49 set_property(TARGET tensorflow@TF_LIB_SUFFIX@::tensorflow@TF_LIB_SUFFIX@
50 PROPERTY IMPORTED_LOCATION_DEBUG
51 "${TENSORFLOW_INSTALL_PREFIX}/debug/lib/@TF_LIB_NAME@"
52 )
53endif()
54
55set(tensorflow@TF_LIB_SUFFIX@_FOUND TRUE)