2021-04-29 08:38:32 +08:00
|
|
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2022-02-10 11:29:02 +08:00
|
|
|
index a1d9bb5..73b1465 100644
|
2021-04-29 08:38:32 +08:00
|
|
|
--- a/CMakeLists.txt
|
|
|
|
+++ b/CMakeLists.txt
|
2022-02-10 11:29:02 +08:00
|
|
|
@@ -359,10 +359,8 @@ if(WITH_QHULL)
|
2021-04-29 08:38:32 +08:00
|
|
|
if(NOT PCL_SHARED_LIBS OR ((WIN32 AND NOT MINGW) AND NOT PCL_BUILD_WITH_QHULL_DYNAMIC_LINKING_WIN32))
|
|
|
|
set(QHULL_USE_STATIC ON)
|
|
|
|
endif()
|
|
|
|
- find_package(Qhull)
|
|
|
|
- if(QHULL_FOUND)
|
|
|
|
- include_directories(SYSTEM ${QHULL_INCLUDE_DIRS})
|
|
|
|
- endif()
|
|
|
|
+ find_package(Qhull CONFIG REQUIRED)
|
2022-02-10 11:29:02 +08:00
|
|
|
+ set(HAVE_QHULL ON)
|
2021-04-29 08:38:32 +08:00
|
|
|
endif()
|
|
|
|
|
|
|
|
# Cuda
|
|
|
|
diff --git a/surface/CMakeLists.txt b/surface/CMakeLists.txt
|
2022-02-10 11:29:02 +08:00
|
|
|
index d8a8566..1953c55 100644
|
2021-04-29 08:38:32 +08:00
|
|
|
--- a/surface/CMakeLists.txt
|
|
|
|
+++ b/surface/CMakeLists.txt
|
|
|
|
@@ -12,7 +12,7 @@ if(NOT build)
|
|
|
|
return()
|
|
|
|
endif()
|
|
|
|
|
|
|
|
-if(QHULL_FOUND)
|
|
|
|
+if(Qhull_FOUND)
|
|
|
|
set(HULL_INCLUDES
|
|
|
|
"include/pcl/${SUBSYS_NAME}/concave_hull.h"
|
|
|
|
"include/pcl/${SUBSYS_NAME}/convex_hull.h"
|
2021-11-05 15:24:45 +08:00
|
|
|
@@ -186,7 +186,12 @@ if(VTK_FOUND)
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
|
2021-04-29 08:38:32 +08:00
|
|
|
-if(QHULL_FOUND)
|
|
|
|
+if(Qhull_FOUND)
|
|
|
|
+ if(QHULL_USE_STATIC)
|
|
|
|
+ set(QHULL_LIBRARIES Qhull::qhullcpp Qhull::qhullstatic Qhull::qhullstatic_r)
|
|
|
|
+ else()
|
|
|
|
+ set(QHULL_LIBRARIES Qhull::qhull_r Qhull::qhullcpp)
|
|
|
|
+ endif()
|
|
|
|
target_link_libraries("${LIB_NAME}" ${QHULL_LIBRARIES})
|
|
|
|
endif()
|
2021-11-05 15:24:45 +08:00
|
|
|
|