CMakeLists.txt 621 字节
Newer Older
H
HexToString 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14
FILE(GLOB op_srcs ${CMAKE_CURRENT_LIST_DIR}/*.cpp ${CMAKE_CURRENT_LIST_DIR}/../../predictor/tools/quant.cpp)
if(WITH_OPENCV)
    FILE(GLOB ocrtools_srcs ${CMAKE_CURRENT_LIST_DIR}/../../predictor/tools/ocrtools/*.cpp)
    LIST(APPEND op_srcs ${ocrtools_srcs})
else()
    set (EXCLUDE_DIR "general_detection_op.cpp")
    foreach (TMP_PATH ${op_srcs})
        string (FIND ${TMP_PATH} ${EXCLUDE_DIR} EXCLUDE_DIR_FOUND)
        if (NOT ${EXCLUDE_DIR_FOUND} EQUAL -1)
            list (REMOVE_ITEM op_srcs ${TMP_PATH})
            break()
        endif ()
    endforeach(TMP_PATH)
endif()
15
LIST(APPEND serving_srcs ${op_srcs})