@@ -29,7 +29,7 @@ include_directories(${OpenCV_INCLUDE_DIRS})
2929
3030# -------------- ONNXRuntime ------------------#
3131set (ONNXRUNTIME_VERSION 1.21.0)
32- set (ONNXRUNTIME_ROOT "${CMAKE_CURRENT_SOURCE_DIR} /../hero_sam/onnxruntime-linux-x64-gpu-1.21.1" )
32+ set (ONNXRUNTIME_ROOT "${CMAKE_CURRENT_SOURCE_DIR} /../hero_sam.bak /onnxruntime-linux-x64-gpu-1.21.1" )
3333include_directories (${ONNXRUNTIME_ROOT} /include )
3434
3535# -------------- Cuda ------------------#
@@ -43,7 +43,7 @@ set(PROJECT_SOURCES
4343
4444# Main executable (without tests)
4545add_executable (${PROJECT_NAME} ${PROJECT_SOURCES} )
46- include_directories (${CMAKE_CURRENT_SOURCE_DIR} /inc )
46+ include_directories (${CMAKE_CURRENT_SOURCE_DIR} /include )
4747
4848# Link libraries for main executable
4949target_link_libraries (${PROJECT_NAME} ${OpenCV_LIBS} ${ONNXRUNTIME_ROOT} /lib/libonnxruntime.so)
@@ -54,7 +54,7 @@ add_executable(${PROJECT_NAME}_test
5454 src/yolo_inference.cpp # Include only the source files needed for testing (not main.cpp)
5555)
5656
57- target_include_directories (${PROJECT_NAME} _test PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} /inc )
57+ target_include_directories (${PROJECT_NAME} _test PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} /include )
5858
5959# Link libraries for test executable
6060target_link_libraries (${PROJECT_NAME} _test
@@ -69,10 +69,10 @@ add_test(NAME yolo_tests COMMAND ${PROJECT_NAME}_test)
6969
7070# Download https://raw.githubusercontent.com/ultralytics/ultralytics/main/ultralytics/cfg/datasets/coco.yaml
7171# and put it in the same folder of the executable file
72- configure_file (../ hero_sam/yolo_inference/data/coco.yaml ${CMAKE_CURRENT_BINARY_DIR} /coco.yaml COPYONLY )
72+ configure_file (/home/amigo/Documents/repos/ hero_sam.bak /yolo_inference/data/coco.yaml ${CMAKE_CURRENT_BINARY_DIR} /coco.yaml COPYONLY )
7373
7474# Copy yolov8n.onnx file to the same folder of the executable file
75- configure_file (../ hero_sam/yolo_inference/model/yolo11m.onnx ${CMAKE_CURRENT_BINARY_DIR} /yolo11m.onnx COPYONLY )
75+ configure_file (/home/amigo/Documents/repos/ hero_sam.bak /yolo_inference/model/yolo11m.onnx ${CMAKE_CURRENT_BINARY_DIR} /yolo11m.onnx COPYONLY )
7676
7777# Create folder name images in the same folder of the executable file
7878add_custom_command (TARGET ${PROJECT_NAME} POST_BUILD
0 commit comments