1 # Copyright 2017 The TensorFlow Authors. All Rights Reserved. 2 # 3 # Licensed under the Apache License, Version 2.0 (the "License"); 4 # you may not use this file except in compliance with the License. 5 # You may obtain a copy of the License at 6 # 7 # http://www.apache.org/licenses/LICENSE-2.0 8 # 9 # Unless required by applicable law or agreed to in writing, software 10 # distributed under the License is distributed on an "AS IS" BASIS, 11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 # See the License for the specific language governing permissions and 13 # limitations under the License. 14 # ============================================================================== 15 set(tf_label_image_example_srcs 16 "${tensorflow_source_dir}/tensorflow/examples/label_image/main.cc" 17 ) 18 19 add_executable(tf_label_image_example 20 ${tf_label_image_example_srcs} 21 $<TARGET_OBJECTS:tf_core_lib> 22 $<TARGET_OBJECTS:tf_core_cpu> 23 $<TARGET_OBJECTS:tf_core_framework> 24 $<TARGET_OBJECTS:tf_core_kernels> 25 $<TARGET_OBJECTS:tf_cc_framework> 26 $<TARGET_OBJECTS:tf_cc_ops> 27 $<TARGET_OBJECTS:tf_core_ops> 28 $<TARGET_OBJECTS:tf_core_direct_session> 29 $<$<BOOL:${tensorflow_ENABLE_GPU}>:$<TARGET_OBJECTS:tf_stream_executor>> 30 ) 31 32 target_link_libraries(tf_label_image_example PUBLIC 33 tf_protos_cc 34 ${tf_core_gpu_kernels_lib} 35 ${tensorflow_EXTERNAL_LIBRARIES} 36 ) 37 38 install(TARGETS tf_label_image_example 39 RUNTIME DESTINATION bin 40 LIBRARY DESTINATION lib 41 ARCHIVE DESTINATION lib)