Browse Source

update CMakeLists.txt version

DevYK 3 years ago
parent
commit
d026a799aa

+ 3 - 2
CMakeLists.txt

@@ -26,7 +26,7 @@ IF (CMAKE_SYSTEM_NAME MATCHES "Linux")
     include_directories(${JNI_PATH})
 
     set(OPENCV_HOME /usr)
-    set(OPENCV_INCLUDE ${OPENCV_HOME}/include/)
+    set(OPENCV_INCLUDE ${OPENCV_HOME}/include)
     set(OPENCV_LIBS ${OPENCV_HOME}/lib64)
 
 ELSEIF (CMAKE_SYSTEM_NAME MATCHES "Darwin")
@@ -42,7 +42,8 @@ ELSE ()
 ENDIF (CMAKE_SYSTEM_NAME MATCHES "Linux")
 
 message(OPENCV_INCLUDE>${OPENCV_INCLUDE})
-message(OPENCV_LIBS>${OPENCV_INCLUDE})
+message(OPENCV_LIBS>${OPENCV_LIBS})
+message(JAVA_HOME>${JAVA_HOME})
 link_directories(${OPENCV_LIBS})
 include_directories(${OPENCV_INCLUDE})
 include_directories(${JNI_MD_PATH})

+ 2 - 1
cmake-build-debug/CMakeFiles/clion-log.txt

@@ -3,7 +3,8 @@ FINDJAVA_HOME--->
 JAVA_HOME
 not defined environment variable:JAVA_HOME
 OPENCV_INCLUDE>/usr/local/Cellar/opencv/4.5.4_4/include/opencv4
-OPENCV_LIBS>/usr/local/Cellar/opencv/4.5.4_4/include/opencv4
+OPENCV_LIBS>/usr/local/Cellar/opencv/4.5.4_4/lib
+JAVA_HOME>/Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home
 -- Configuring done
 -- Generating done
 -- Build files have been written to: /Users/devyk/Data/Project/sample/github_code/OpenCVSample/cmake-build-debug

+ 2 - 2
cmake-build-debug/Testing/Temporary/LastTest.log

@@ -1,3 +1,3 @@
-Start testing: Feb 24 13:47 CST
+Start testing: Feb 24 13:52 CST
 ----------------------------------------------------------
-End testing: Feb 24 13:47 CST
+End testing: Feb 24 13:52 CST