2023-11-22 12:56:31 +01:00
|
|
|
# CloudCompare example for standard plugins
|
|
|
|
|
|
|
|
|
|
# REPLACE ALL 'G3PointPlugin' OCCURENCES BY YOUR PLUGIN NAME
|
|
|
|
|
# AND ADAPT THE CODE BELOW TO YOUR OWN NEEDS!
|
|
|
|
|
|
|
|
|
|
# Add an option to CMake to control whether we build this plugin or not
|
|
|
|
|
option( PLUGIN_G3POINT "Install example plugin" OFF )
|
|
|
|
|
|
|
|
|
|
if ( PLUGIN_G3POINT )
|
|
|
|
|
project( G3PointPlugin )
|
|
|
|
|
|
|
|
|
|
AddPlugin( NAME ${PROJECT_NAME} )
|
|
|
|
|
|
|
|
|
|
add_subdirectory( include )
|
|
|
|
|
add_subdirectory( src )
|
2023-12-22 00:26:28 +01:00
|
|
|
add_subdirectory( ui )
|
2023-11-26 22:43:42 +01:00
|
|
|
|
2024-02-19 13:39:50 +01:00
|
|
|
# target_compile_features(${PROJECT_NAME} PRIVATE cxx_std_17) # for mlpack
|
2024-02-08 00:22:02 +01:00
|
|
|
|
2023-11-26 22:43:42 +01:00
|
|
|
target_include_directories( ${PROJECT_NAME} PRIVATE
|
|
|
|
|
C:/opt/eigen-3.4.0
|
2024-02-08 00:22:02 +01:00
|
|
|
C:/Users/PaulLeroy/miniconda3/envs/env_4_CloudCompare/include
|
2024-02-08 18:59:07 +01:00
|
|
|
C:/opt/open3d-devel-windows-amd64-0.18.0/include
|
2024-03-26 17:24:03 +01:00
|
|
|
C:/opt/GeometricTools/GTE
|
2023-11-26 22:43:42 +01:00
|
|
|
)
|
2023-11-22 12:56:31 +01:00
|
|
|
|
2024-02-08 00:22:02 +01:00
|
|
|
# Find installed Open3D, which exports Open3D::Open3D
|
2024-02-19 13:39:50 +01:00
|
|
|
find_package( Open3D REQUIRED )
|
|
|
|
|
target_link_libraries( ${PROJECT_NAME} Open3D::Open3D )
|
|
|
|
|
message( "Open3D_DIR ${Open3D_DIR}" )
|
|
|
|
|
set( OPENCV_DEP_DLL_FILES ${Open3D_DIR}/../bin/Open3D.dll )
|
|
|
|
|
copy_files( "${OPENCV_DEP_DLL_FILES}" "${CLOUDCOMPARE_DEST_FOLDER}" ) #mind the quotes!
|
2024-02-08 00:22:02 +01:00
|
|
|
|
2023-11-22 12:56:31 +01:00
|
|
|
endif()
|