From 4ae3e8743f22d16e9c09529ab4ca6ffe422ae017 Mon Sep 17 00:00:00 2001 From: Ryo Mizote <ryo_mizote@msh.biglobe.ne.jp> Date: Thu, 28 Jan 2021 13:58:42 +0900 Subject: [PATCH] Fix a bug(wrong CMakeLists syntax) (#377) --- arcface/CMakeLists.txt | 2 +- crnn/CMakeLists.txt | 2 +- dbnet/CMakeLists.txt | 2 +- ibnnet/CMakeLists.txt | 2 +- psenet/CMakeLists.txt | 2 +- retinaface/CMakeLists.txt | 2 +- retinafaceAntiCov/CMakeLists.txt | 2 +- ufld/CMakeLists.txt | 2 +- yolov3-spp/CMakeLists.txt | 2 +- yolov3-tiny/CMakeLists.txt | 2 +- yolov3/CMakeLists.txt | 2 +- yolov4/CMakeLists.txt | 2 +- yolov5/CMakeLists.txt | 2 +- 13 files changed, 13 insertions(+), 13 deletions(-) diff --git a/arcface/CMakeLists.txt b/arcface/CMakeLists.txt index e5292aae..b8e25fd8 100644 --- a/arcface/CMakeLists.txt +++ b/arcface/CMakeLists.txt @@ -27,7 +27,7 @@ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall -Ofast -Wfatal-errors - cuda_add_library(myplugins SHARED ${PROJECT_SOURCE_DIR}/prelu.cu) find_package(OpenCV) -include_directories(OpenCV_INCLUDE_DIRS) +include_directories(${OpenCV_INCLUDE_DIRS}) add_executable(arcface-r50 ${PROJECT_SOURCE_DIR}/arcface-r50.cpp) target_link_libraries(arcface-r50 nvinfer) diff --git a/crnn/CMakeLists.txt b/crnn/CMakeLists.txt index d159cf5c..6d49a4e8 100644 --- a/crnn/CMakeLists.txt +++ b/crnn/CMakeLists.txt @@ -22,7 +22,7 @@ else() endif() find_package(OpenCV) -include_directories(OpenCV_INCLUDE_DIRS) +include_directories(${OpenCV_INCLUDE_DIRS}) add_executable(crnn ${PROJECT_SOURCE_DIR}/crnn.cpp) target_link_libraries(crnn nvinfer) diff --git a/dbnet/CMakeLists.txt b/dbnet/CMakeLists.txt index b6d5f93e..f6133561 100644 --- a/dbnet/CMakeLists.txt +++ b/dbnet/CMakeLists.txt @@ -13,7 +13,7 @@ find_package(CUDA REQUIRED) include_directories(${PROJECT_SOURCE_DIR}/include) find_package(OpenCV) -include_directories(OpenCV_INCLUDE_DIRS) +include_directories(${OpenCV_INCLUDE_DIRS}) add_executable(dbnet ${PROJECT_SOURCE_DIR}/dbnet.cpp) target_link_libraries(dbnet nvinfer) diff --git a/ibnnet/CMakeLists.txt b/ibnnet/CMakeLists.txt index 93b1132e..17f518ed 100644 --- a/ibnnet/CMakeLists.txt +++ b/ibnnet/CMakeLists.txt @@ -22,7 +22,7 @@ link_directories(/usr/lib/x86_64-linux-gnu/) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -pthread -Wall -Ofast -Wfatal-errors -D_MWAITXINTRIN_H_INCLUDED") find_package(OpenCV) -include_directories(OpenCV_INCLUDE_DIRS) +include_directories(${OpenCV_INCLUDE_DIRS}) file(GLOB SOURCE_FILES "*.h" "*.cpp") diff --git a/psenet/CMakeLists.txt b/psenet/CMakeLists.txt index 5efa5ee6..3eb75b34 100644 --- a/psenet/CMakeLists.txt +++ b/psenet/CMakeLists.txt @@ -25,7 +25,7 @@ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall -Ofast -Wfatal-errors - find_package(OpenCV) -include_directories(OpenCV_INCLUDE_DIRS) +include_directories(${OpenCV_INCLUDE_DIRS}) file(GLOB SOURCE_FILES "*.h" "*.cpp") diff --git a/retinaface/CMakeLists.txt b/retinaface/CMakeLists.txt index 198ccd2a..18c671a6 100644 --- a/retinaface/CMakeLists.txt +++ b/retinaface/CMakeLists.txt @@ -26,7 +26,7 @@ cuda_add_library(decodeplugin SHARED ${PROJECT_SOURCE_DIR}/decode.cu) target_link_libraries(decodeplugin nvinfer cudart) find_package(OpenCV) -include_directories(OpenCV_INCLUDE_DIRS) +include_directories(${OpenCV_INCLUDE_DIRS}) add_executable(retina_r50 ${PROJECT_SOURCE_DIR}/calibrator.cpp ${PROJECT_SOURCE_DIR}/retina_r50.cpp) target_link_libraries(retina_r50 nvinfer) diff --git a/retinafaceAntiCov/CMakeLists.txt b/retinafaceAntiCov/CMakeLists.txt index efe13763..b4f21157 100644 --- a/retinafaceAntiCov/CMakeLists.txt +++ b/retinafaceAntiCov/CMakeLists.txt @@ -27,7 +27,7 @@ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall -Ofast -Wfatal-errors - cuda_add_library(myplugins SHARED ${PROJECT_SOURCE_DIR}/decode.cu) find_package(OpenCV) -include_directories(OpenCV_INCLUDE_DIRS) +include_directories(${OpenCV_INCLUDE_DIRS}) add_executable(retinafaceAntiCov ${PROJECT_SOURCE_DIR}/retinafaceAntiCov.cpp) target_link_libraries(retinafaceAntiCov nvinfer) diff --git a/ufld/CMakeLists.txt b/ufld/CMakeLists.txt index ee34cb54..3454e37d 100644 --- a/ufld/CMakeLists.txt +++ b/ufld/CMakeLists.txt @@ -13,7 +13,7 @@ find_package(CUDA REQUIRED) include_directories(${PROJECT_SOURCE_DIR}/include) find_package(OpenCV) -include_directories(OpenCV_INCLUDE_DIRS) +include_directories(${OpenCV_INCLUDE_DIRS}) add_executable(lane_det ${PROJECT_SOURCE_DIR}/lane_det.cpp) target_link_libraries(lane_det nvinfer) diff --git a/yolov3-spp/CMakeLists.txt b/yolov3-spp/CMakeLists.txt index 05a081fe..0e724b1a 100644 --- a/yolov3-spp/CMakeLists.txt +++ b/yolov3-spp/CMakeLists.txt @@ -25,7 +25,7 @@ cuda_add_library(yololayer SHARED ${PROJECT_SOURCE_DIR}/yololayer.cu) target_link_libraries(yololayer nvinfer cudart) find_package(OpenCV) -include_directories(OpenCV_INCLUDE_DIRS) +include_directories(${OpenCV_INCLUDE_DIRS}) add_executable(yolov3-spp ${PROJECT_SOURCE_DIR}/yolov3-spp.cpp) target_link_libraries(yolov3-spp nvinfer) diff --git a/yolov3-tiny/CMakeLists.txt b/yolov3-tiny/CMakeLists.txt index 7c964183..64a750a0 100644 --- a/yolov3-tiny/CMakeLists.txt +++ b/yolov3-tiny/CMakeLists.txt @@ -29,7 +29,7 @@ cuda_add_library(yololayer SHARED ${PROJECT_SOURCE_DIR}/yololayer.cu) target_link_libraries(yololayer nvinfer cudart) find_package(OpenCV) -include_directories(OpenCV_INCLUDE_DIRS) +include_directories(${OpenCV_INCLUDE_DIRS}) add_executable(yolov3-tiny ${PROJECT_SOURCE_DIR}/yolov3-tiny.cpp) target_link_libraries(yolov3-tiny nvinfer) diff --git a/yolov3/CMakeLists.txt b/yolov3/CMakeLists.txt index 03407eed..4cfed538 100644 --- a/yolov3/CMakeLists.txt +++ b/yolov3/CMakeLists.txt @@ -20,7 +20,7 @@ include_directories(/usr/include/x86_64-linux-gnu/) link_directories(/usr/lib/x86_64-linux-gnu/) find_package(OpenCV) -include_directories(OpenCV_INCLUDE_DIRS) +include_directories(${OpenCV_INCLUDE_DIRS}) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall -Ofast -Wfatal-errors -D_MWAITXINTRIN_H_INCLUDED") diff --git a/yolov4/CMakeLists.txt b/yolov4/CMakeLists.txt index fa829628..9e391ad1 100644 --- a/yolov4/CMakeLists.txt +++ b/yolov4/CMakeLists.txt @@ -25,7 +25,7 @@ cuda_add_library(myplugins SHARED ${PROJECT_SOURCE_DIR}/yololayer.cu ${PROJECT_S target_link_libraries(myplugins nvinfer cudart) find_package(OpenCV) -include_directories(OpenCV_INCLUDE_DIRS) +include_directories(${OpenCV_INCLUDE_DIRS}) add_executable(yolov4 ${PROJECT_SOURCE_DIR}/yolov4.cpp) target_link_libraries(yolov4 nvinfer) diff --git a/yolov5/CMakeLists.txt b/yolov5/CMakeLists.txt index 5e8fba8c..3ebc96b1 100644 --- a/yolov5/CMakeLists.txt +++ b/yolov5/CMakeLists.txt @@ -25,7 +25,7 @@ cuda_add_library(myplugins SHARED ${PROJECT_SOURCE_DIR}/yololayer.cu) target_link_libraries(myplugins nvinfer cudart) find_package(OpenCV) -include_directories(OpenCV_INCLUDE_DIRS) +include_directories(${OpenCV_INCLUDE_DIRS}) add_executable(yolov5 ${PROJECT_SOURCE_DIR}/calibrator.cpp ${PROJECT_SOURCE_DIR}/yolov5.cpp) target_link_libraries(yolov5 nvinfer)