mirror of
https://github.com/truebelief/cc-treeiso-plugin.git
synced 2026-08-29 08:34:29 +08:00
c928ee794c
1. Removed the Boost dependency by adopting a newer cut-pursuit version from the authors (resulting in a 5–15× speed improvement). 2. Fixed an issue with the nearest neighbor search caused by an incorrect 2D array order input to the knn_cpp query function. 3. Enabled customization of the number of threads for knn-cpp, yielding a slight speed improvement. 4. Optimized array calculations through enhanced use of STL algorithms.
27 lines
657 B
CMake
27 lines
657 B
CMake
cmake_minimum_required( VERSION 3.10 )
|
|
|
|
option( PLUGIN_STANDARD_QTREEISO "Install qTreeIso plugin" OFF )
|
|
|
|
if( PLUGIN_STANDARD_QTREEISO )
|
|
|
|
project( QTREEISO_PLUGIN )
|
|
|
|
AddPlugin( NAME ${PROJECT_NAME} )
|
|
|
|
find_package(Eigen3 QUIET)
|
|
if(NOT Eigen3_FOUND)
|
|
set( EIGEN_ROOT_DIR "" CACHE PATH "Eigen root (contains the Eigen directory)" )
|
|
if ( NOT EIGEN_ROOT_DIR )
|
|
message( SEND_ERROR "No Eigen root directory specified (EIGEN_ROOT_DIR)" )
|
|
endif()
|
|
include_directories(${EIGEN_ROOT_DIR})
|
|
else()
|
|
target_link_libraries(${PROJECT_NAME} Eigen3::Eigen)
|
|
endif()
|
|
|
|
add_subdirectory( include )
|
|
add_subdirectory( src )
|
|
add_subdirectory( ui )
|
|
|
|
endif()
|