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()
LIST(APPEND serving_srcs ${op_srcs})