2017-06-15 06:46:30 +08:00
|
|
|
diff --git a/PCLConfig.cmake.in b/PCLConfig.cmake.in
|
2017-08-11 02:07:08 +08:00
|
|
|
index f4ef6a0ff..3a2c259dc 100644
|
2017-06-15 06:46:30 +08:00
|
|
|
--- a/PCLConfig.cmake.in
|
|
|
|
+++ b/PCLConfig.cmake.in
|
2017-07-05 23:30:18 +08:00
|
|
|
@@ -155,7 +155,7 @@ macro(find_qhull)
|
2017-06-15 06:46:30 +08:00
|
|
|
NAMES "@QHULL_LIBRARY_DEBUG_NAME@"
|
|
|
|
HINTS "${QHULL_ROOT}" "$ENV{QHULL_ROOT}"
|
|
|
|
PATHS "$ENV{PROGRAMFILES}/qhull" "$ENV{PROGRAMW6432}/qhull"
|
|
|
|
- PATH_SUFFIXES project build bin lib)
|
|
|
|
+ PATH_SUFFIXES project build bin debug/lib)
|
|
|
|
|
|
|
|
find_package_handle_standard_args(qhull DEFAULT_MSG QHULL_LIBRARY QHULL_INCLUDE_DIRS)
|
|
|
|
|
2017-07-05 23:30:18 +08:00
|
|
|
@@ -443,7 +443,7 @@ macro(find_flann)
|
2017-06-15 06:46:30 +08:00
|
|
|
HINTS ${PC_FLANN_LIBDIR} ${PC_FLANN_LIBRARY_DIRS} "${FLANN_ROOT}" "$ENV{FLANN_ROOT}"
|
|
|
|
PATHS "$ENV{PROGRAMFILES}/flann 1.6.9" "$ENV{PROGRAMW6432}/flann 1.6.9"
|
|
|
|
"$ENV{PROGRAMFILES}/flann" "$ENV{PROGRAMW6432}/flann"
|
|
|
|
- PATH_SUFFIXES lib)
|
|
|
|
+ PATH_SUFFIXES debug/lib)
|
|
|
|
|
|
|
|
find_package_handle_standard_args(Flann DEFAULT_MSG FLANN_LIBRARY FLANN_INCLUDE_DIRS)
|
|
|
|
if(FLANN_FOUND)
|
2017-08-11 02:07:08 +08:00
|
|
|
@@ -715,25 +715,18 @@ file(TO_CMAKE_PATH "${PCL_DIR}" PCL_DIR)
|
2017-06-15 06:46:30 +08:00
|
|
|
if(WIN32 AND NOT MINGW)
|
|
|
|
# PCLConfig.cmake is installed to PCL_ROOT/cmake
|
|
|
|
get_filename_component(PCL_ROOT "${PCL_DIR}" PATH)
|
|
|
|
+ get_filename_component(PCL_ROOT "${PCL_ROOT}" PATH)
|
|
|
|
else(WIN32 AND NOT MINGW)
|
|
|
|
# PCLConfig.cmake is installed to PCL_ROOT/share/pcl-x.y
|
2017-07-20 08:14:15 +08:00
|
|
|
get_filename_component(PCL_ROOT "${CMAKE_CURRENT_LIST_DIR}/../.." ABSOLUTE)
|
2017-08-11 02:07:08 +08:00
|
|
|
endif(WIN32 AND NOT MINGW)
|
|
|
|
|
|
|
|
# check whether PCLConfig.cmake is found into a PCL installation or in a build tree
|
|
|
|
-if(EXISTS "${PCL_ROOT}/include/pcl-${PCL_VERSION_MAJOR}.${PCL_VERSION_MINOR}/pcl/pcl_config.h")
|
|
|
|
+if(EXISTS "${PCL_ROOT}/include/pcl/pcl_config.h")
|
2017-06-15 06:46:30 +08:00
|
|
|
# Found a PCL installation
|
|
|
|
# pcl_message("Found a PCL installation")
|
2017-08-11 02:07:08 +08:00
|
|
|
- set(PCL_INCLUDE_DIRS "${PCL_ROOT}/include/pcl-${PCL_VERSION_MAJOR}.${PCL_VERSION_MINOR}")
|
2017-06-15 06:46:30 +08:00
|
|
|
- set(PCL_LIBRARY_DIRS "${PCL_ROOT}/@LIB_INSTALL_DIR@")
|
2017-08-11 02:07:08 +08:00
|
|
|
- if(EXISTS "${PCL_ROOT}/3rdParty")
|
|
|
|
- set(PCL_ALL_IN_ONE_INSTALLER ON)
|
|
|
|
- endif(EXISTS "${PCL_ROOT}/3rdParty")
|
|
|
|
-elseif(EXISTS "${PCL_ROOT}/include/pcl/pcl_config.h")
|
|
|
|
- # Found a non-standard (likely ANDROID) PCL installation
|
|
|
|
- # pcl_message("Found a PCL installation")
|
|
|
|
set(PCL_INCLUDE_DIRS "${PCL_ROOT}/include")
|
|
|
|
- set(PCL_LIBRARY_DIRS "${PCL_ROOT}/lib")
|
2017-06-15 06:46:30 +08:00
|
|
|
+ set(PCL_LIBRARY_DIRS "${PCL_ROOT}/@LIB_INSTALL_DIR@" "${PCL_ROOT}/debug/@LIB_INSTALL_DIR@")
|
|
|
|
if(EXISTS "${PCL_ROOT}/3rdParty")
|
|
|
|
set(PCL_ALL_IN_ONE_INSTALLER ON)
|
|
|
|
endif(EXISTS "${PCL_ROOT}/3rdParty")
|
2017-08-11 02:07:08 +08:00
|
|
|
@@ -743,9 +736,9 @@ elseif(EXISTS "${PCL_DIR}/include/pcl/pcl_config.h")
|
|
|
|
set(PCL_INCLUDE_DIRS "${PCL_DIR}/include") # for pcl_config.h
|
|
|
|
set(PCL_LIBRARY_DIRS "${PCL_DIR}/@LIB_INSTALL_DIR@")
|
|
|
|
set(PCL_SOURCES_TREE "@CMAKE_SOURCE_DIR@")
|
|
|
|
-else(EXISTS "${PCL_ROOT}/include/pcl-${PCL_VERSION_MAJOR}.${PCL_VERSION_MINOR}/pcl/pcl_config.h")
|
|
|
|
+else(EXISTS "${PCL_ROOT}/include/pcl/pcl_config.h")
|
|
|
|
pcl_report_not_found("PCL can not be found on this machine")
|
|
|
|
-endif(EXISTS "${PCL_ROOT}/include/pcl-${PCL_VERSION_MAJOR}.${PCL_VERSION_MINOR}/pcl/pcl_config.h")
|
|
|
|
+endif(EXISTS "${PCL_ROOT}/include/pcl/pcl_config.h")
|
|
|
|
|
|
|
|
#set a suffix for debug libraries
|
|
|
|
set(PCL_DEBUG_SUFFIX "@CMAKE_DEBUG_POSTFIX@")
|