mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-10 11:00:19 +08:00

* update .gitignore * Added checking for cmake include dir * fixed missing trt_backend option bug when init from trt * remove un-need data layout and add pre-check for dtype * changed RGB2BRG to BGR2RGB in ppcls model * add model_zoo yolov6 c++/python demo * fixed CMakeLists.txt typos * update yolov6 cpp/README.md * add yolox c++/pybind and model_zoo demo * move some helpers to private * fixed CMakeLists.txt typos * add normalize with alpha and beta * add version notes for yolov5/yolov6/yolox * add copyright to yolov5.cc * revert normalize * fixed some bugs in yolox * fixed examples/CMakeLists.txt to avoid conflicts * add convert processor to vision * format examples/CMakeLists summary
27 lines
1.0 KiB
CMake
27 lines
1.0 KiB
CMake
function(add_fastdeploy_executable FIELD CC_FILE)
|
|
# temp target name/file var in function scope
|
|
set(TEMP_TARGET_FILE ${CC_FILE})
|
|
string(REGEX MATCHALL "[0-9A-Za-z_]*.cc" FILE_NAME ${CC_FILE})
|
|
string(REGEX REPLACE ".cc" "" FILE_PREFIX ${FILE_NAME})
|
|
set(TEMP_TARGET_NAME ${FIELD}_${FILE_PREFIX})
|
|
if (EXISTS ${TEMP_TARGET_FILE} AND TARGET fastdeploy)
|
|
add_executable(${TEMP_TARGET_NAME} ${TEMP_TARGET_FILE})
|
|
target_link_libraries(${TEMP_TARGET_NAME} PUBLIC fastdeploy)
|
|
message(STATUS " Added FastDeploy Executable : ${TEMP_TARGET_NAME}")
|
|
endif()
|
|
unset(TEMP_TARGET_FILE)
|
|
unset(TEMP_TARGET_NAME)
|
|
endfunction()
|
|
|
|
# vision examples
|
|
if(WITH_VISION_EXAMPLES AND EXISTS ${PROJECT_SOURCE_DIR}/examples/vision)
|
|
message(STATUS "")
|
|
message(STATUS "*************FastDeploy Examples Summary**********")
|
|
file(GLOB ALL_VISION_EXAMPLE_SRCS ${PROJECT_SOURCE_DIR}/examples/vision/*.cc)
|
|
foreach(_CC_FILE ${ALL_VISION_EXAMPLE_SRCS})
|
|
add_fastdeploy_executable(vision ${_CC_FILE})
|
|
endforeach()
|
|
endif()
|
|
|
|
# other examples ...
|