Skip to content

Commit

Permalink
Rename TensorRT YOLO directory
Browse files Browse the repository at this point in the history
  • Loading branch information
nickswalker committed Aug 14, 2020
1 parent cf85164 commit 5fc8ef5
Show file tree
Hide file tree
Showing 10 changed files with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions uw_detection/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
cmake_minimum_required(VERSION 2.8.12)
project(uw_detection)

find_package(catkin REQUIRED COMPONENTS cv_bridge
find_package(catkin REQUIRED COMPONENTS
cv_bridge
geometry_msgs
image_transport
message_generation
Expand All @@ -23,9 +24,8 @@ catkin_package()

option(CUDA_USE_STATIC_CUDA_RUNTIME OFF)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_BUILD_TYPE Debug)

find_package(OpenCV)
find_package(OpenCV REQUIRED)
include_directories(OpenCV_INCLUDE_DIRS
${catkin_INCLUDE_DIRS}
include)
Expand All @@ -47,18 +47,18 @@ else()
endif()


set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall -Ofast -Wfatal-errors -D_MWAITXINTRIN_H_INCLUDED")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Ofast -Wfatal-errors -D_MWAITXINTRIN_H_INCLUDED")

cuda_add_library(yololayer SHARED src/yolov3-spp/yololayer.cu)
cuda_add_library(yololayer SHARED src/yolov3/yololayer.cu)

add_library(yolov3-spp src/yolov3-spp/yolov3-spp.cpp)
add_library(yolov3-spp src/yolov3/yolov3-spp.cpp)
target_link_libraries(yolov3-spp nvinfer cudart yololayer ${OpenCV_LIBS})

add_library(yolov3 src/yolov3-spp/yolov3.cpp)
add_library(yolov3 src/yolov3/yolov3.cpp)
target_link_libraries(yolov3 nvinfer cudart yololayer ${OpenCV_LIBS})

add_executable(yolov3_spp_prepare_plan src/yolov3_spp_prepare_plan.cpp)
target_link_libraries(yolov3_spp_prepare_plan yolov3-spp nvinfer cudart yololayer ${OpenCV_LIBS} ${catkin_LIBRARIES})
target_link_libraries(yolov3_spp_prepare_plan yolov3 nvinfer cudart yololayer ${OpenCV_LIBS} ${catkin_LIBRARIES})

add_executable(yolov3_prepare_plan src/yolov3_prepare_plan.cpp)
target_link_libraries(yolov3_prepare_plan yolov3 nvinfer cudart yololayer ${OpenCV_LIBS} ${catkin_LIBRARIES})
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 5fc8ef5

Please sign in to comment.