You can not select more than 25 topics
Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
-
- find_package(OpenCV QUIET COMPONENTS core highgui imgproc imgcodecs)
- if(NOT OpenCV_FOUND)
- find_package(OpenCV REQUIRED COMPONENTS core highgui imgproc)
- endif()
-
- include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../src)
- include_directories(${CMAKE_CURRENT_BINARY_DIR}/../src)
-
- set(NCNN_EXAMPLE_LINK_LIBRARIES ncnn ${OpenCV_LIBS})
- if(NCNN_VULKAN)
- list(APPEND NCNN_EXAMPLE_LINK_LIBRARIES ${Vulkan_LIBRARY})
- endif()
-
- add_executable(squeezenet squeezenet.cpp)
- target_link_libraries(squeezenet ${NCNN_EXAMPLE_LINK_LIBRARIES})
-
- add_executable(fasterrcnn fasterrcnn.cpp)
- target_link_libraries(fasterrcnn ${NCNN_EXAMPLE_LINK_LIBRARIES})
-
- add_executable(rfcn rfcn.cpp)
- target_link_libraries(rfcn ${NCNN_EXAMPLE_LINK_LIBRARIES})
-
- add_executable(yolov2 yolov2.cpp)
- target_link_libraries(yolov2 ${NCNN_EXAMPLE_LINK_LIBRARIES})
-
- add_executable(yolov3 yolov3.cpp)
- target_link_libraries(yolov3 ${NCNN_EXAMPLE_LINK_LIBRARIES})
-
- add_executable(mobilenetv2ssdlite mobilenetv2ssdlite.cpp)
- target_link_libraries(mobilenetv2ssdlite ${NCNN_EXAMPLE_LINK_LIBRARIES})
-
- add_executable(mobilenetssd mobilenetssd.cpp)
- target_link_libraries(mobilenetssd ${NCNN_EXAMPLE_LINK_LIBRARIES})
-
- add_executable(squeezenetssd squeezenetssd.cpp)
- target_link_libraries(squeezenetssd ${NCNN_EXAMPLE_LINK_LIBRARIES})
-
- add_executable(shufflenetv2 shufflenetv2.cpp)
- target_link_libraries(shufflenetv2 ${NCNN_EXAMPLE_LINK_LIBRARIES})
-
- add_executable(peleenetssd_seg peleenetssd_seg.cpp)
- target_link_libraries(peleenetssd_seg ${NCNN_EXAMPLE_LINK_LIBRARIES})
-
- add_executable(simplepose simplepose.cpp)
- target_link_libraries(simplepose ${NCNN_EXAMPLE_LINK_LIBRARIES})
-
- add_executable(retinaface retinaface.cpp)
- target_link_libraries(retinaface ${NCNN_EXAMPLE_LINK_LIBRARIES})
-
-
- # add all examples to a virtual project group
- set_property(TARGET squeezenet PROPERTY FOLDER "examples")
- set_property(TARGET fasterrcnn PROPERTY FOLDER "examples")
- set_property(TARGET rfcn PROPERTY FOLDER "examples")
- set_property(TARGET yolov2 PROPERTY FOLDER "examples")
- set_property(TARGET yolov3 PROPERTY FOLDER "examples")
- set_property(TARGET mobilenetv2ssdlite PROPERTY FOLDER "examples")
- set_property(TARGET mobilenetssd PROPERTY FOLDER "examples")
- set_property(TARGET squeezenetssd PROPERTY FOLDER "examples")
- set_property(TARGET shufflenetv2 PROPERTY FOLDER "examples")
- set_property(TARGET peleenetssd_seg PROPERTY FOLDER "examples")
- set_property(TARGET simplepose PROPERTY FOLDER "examples")
- set_property(TARGET retinaface PROPERTY FOLDER "examples")
|