Created
September 26, 2018 11:31
-
-
Save lteu/6cdeff9223fd402a29971f44a9c923a9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#cmake_minimum_required(VERSION 2.8.4 FATAL_ERROR) | |
project(playground2) | |
include_directories(${Protobuf_INCLUDE_DIRS} ${EIGEN3_INCLUDE_DIRS} ${TENSORFLOW_INCLUDE_DIRS} ${OpenCV_INCLUDE_DIRS}) | |
set (SOURCEFILES stdafx.h | |
playground.cpp) | |
adtf_add_filter(${PROJECT_NAME} | |
${SOURCEFILES} | |
) | |
# Specify where it should be installed to | |
adtf_install_target(${PROJECT_NAME} bin) | |
adtf_create_plugindescription( | |
TARGET | |
${PROJECT_NAME} | |
PLUGIN_SUBDIR | |
"bin" | |
) | |
# Link your application with other libraries | |
target_link_libraries(${PROJECT_NAME} LINK_PUBLIC ${OpenCV_LIBS}) | |
target_link_libraries(${PROJECT_NAME} LINK_PUBLIC ${Protobuf_LIBRARIES} ) | |
target_link_libraries(${PROJECT_NAME} LINK_PUBLIC ${TENSORFLOW_LIBS} ) | |
#target_link_libraries(${PROJECT_NAME} LINK_PUBLIC ${Protobuf_LIBRARIES} -Wl,--allow-multiple-definition -Wl,--whole-archive ${TENSORFLOW_LIBS} -Wl,--allow-multiple-definition -Wl,--whole-archive) | |
#this is to add a folder within the ADTF solution | |
set_property(TARGET ${PROJECT_NAME} PROPERTY FOLDER user) | |
set_property(TARGET ${PROJECT_NAME}_pdgen PROPERTY FOLDER user) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment