From cc6f8a873c7efd28fbbeb7c1c70b28a053586f17 Mon Sep 17 00:00:00 2001
From: suntianyu <xuepengqiang@aiotlink.com>
Date: 星期五, 30 七月 2021 10:53:09 +0800
Subject: [PATCH] m

---
 CMakeLists.txt |   27 +++++++++++++++++++--------
 1 files changed, 19 insertions(+), 8 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 66ae8a8..d67f43d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -12,8 +12,8 @@
 set(CMAKE_CXX_STANDARD 14)
 
 add_compile_options(-fPIC -ldl -lm -g -Wall  -Wshadow -Wno-sign-compare -w  -pthread)
-FIND_PACKAGE(OpenCV REQUIRED PATHS "/data/disk2/opt/01_opencv/opencv4.5.2") # opencv 濡傛灉浣跨敤 鐗堟湰4.5.2
-include_directories( ${OpenCV_INCLUDE_DIRS})
+# FIND_PACKAGE(OpenCV REQUIRED PATHS "/data/disk2/opt/01_opencv/opencv4.5.2") # opencv 濡傛灉浣跨敤 鐗堟湰4.5.2
+set(OPENCV_DIR /opt/toolkits/opencv)
 
 file(GLOB_RECURSE CURRENT_HEADERS
 		./*.h
@@ -33,9 +33,20 @@
 source_group("Include" FILES ${CURRENT_HEADERS})
 source_group("Source" FILES ${sources})
 
-include_directories(/data/disk2/opt/04_protobuf/01_protobuf3.10/include)
-link_directories(/data/disk2/opt/04_protobuf/01_protobuf3.10/lib)
-set(LOG_DIR /data/disk2/opt/log4cplus)
+set(CUDA_Path /usr/local/cuda)
+include_directories(${CUDA_Path}/include)
+link_directories(${CUDA_Path}/lib64)
+
+include_directories(${OPENCV_DIR}/include/opencv4)
+link_directories(${OPENCV_DIR}/lib)
+#include_directories(/opt/toolkits/protobuf/include)
+#link_directories(/opt/toolkits/protobuf/lib)
+include_directories("/usr/include/x86_64-linux-gnu/")
+link_directories(/usr/lib/x86_64-linux-gnu/)
+link_directories(/home/basic/anaconda3/lib/)
+
+set(LOG_DIR /opt/toolkits/log4cplus)
+include_directories("/usr/include/jsoncpp/")
 
 include_directories(
 		${CMAKE_CURRENT_SOURCE_DIR}
@@ -50,7 +61,7 @@
 
 link_directories(${LOG_DIR}/lib)
 include_directories(${LOG_DIR}/include)
-#cuda_add_executable(${PROJECT_NAME})
-cuda_add_executable(${PROJECT_NAME} dome.cpp ${sources} ${CURRENT_HEADERS})
-# cuda_add_library(${PROJECT_NAME} SHARED ${sources} ${CURRENT_HEADERS})
+
+#add_executable(${PROJECT_NAME} dome.cpp ${sources} ${CURRENT_HEADERS})
+add_library(${PROJECT_NAME} SHARED ${sources} ${CURRENT_HEADERS})
 target_link_libraries(${PROJECT_NAME} protobuf ${LIBS})

--
Gitblit v1.8.0