1 if(TARGET tensorflow@TF_LIB_SUFFIX@::tensorflow@TF_LIB_SUFFIX@)
5 add_library(tensorflow@TF_LIB_SUFFIX@::tensorflow@TF_LIB_SUFFIX@ STATIC IMPORTED GLOBAL)
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@
9 get_filename_component(TENSORFLOW_INSTALL_PREFIX "${CMAKE_CURRENT_LIST_DIR}" DIRECTORY)
10 # TENSORFLOW_INSTALL_PREFIX = [vcpkg_installed_dir]/[target_triplet]/share
11 get_filename_component(TENSORFLOW_INSTALL_PREFIX "${TENSORFLOW_INSTALL_PREFIX}" DIRECTORY)
12 # TENSORFLOW_INSTALL_PREFIX = [vcpkg_installed_dir]/[target_triplet]
14 target_include_directories(tensorflow@TF_LIB_SUFFIX@::tensorflow@TF_LIB_SUFFIX@
19 if(@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@"
25 set_property(TARGET tensorflow@TF_LIB_SUFFIX@::tensorflow@TF_LIB_SUFFIX@
26 APPEND PROPERTY IMPORTED_CONFIGURATIONS
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@"
36 if(@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@"
44 set_property(TARGET tensorflow@TF_LIB_SUFFIX@::tensorflow@TF_LIB_SUFFIX@
45 APPEND PROPERTY IMPORTED_CONFIGURATIONS
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@"
55 set(tensorflow@TF_LIB_SUFFIX@_FOUND TRUE)