This commit is contained in:
Paul Leroy
2024-02-19 13:39:50 +01:00
parent b4e64a1f28
commit bcafbe844f
2 changed files with 16 additions and 20 deletions
+6 -15
View File
@@ -15,7 +15,7 @@ if ( PLUGIN_G3POINT )
add_subdirectory( src )
add_subdirectory( ui )
target_compile_features(${PROJECT_NAME} PRIVATE cxx_std_17) # for mlpack
# target_compile_features(${PROJECT_NAME} PRIVATE cxx_std_17) # for mlpack
target_include_directories( ${PROJECT_NAME} PRIVATE
C:/opt/eigen-3.4.0
@@ -24,19 +24,10 @@ if ( PLUGIN_G3POINT )
)
# Find installed Open3D, which exports Open3D::Open3D
find_package(Open3D REQUIRED)
target_link_libraries( ${PROJECT_NAME} Open3D::Open3D)
# On Windows if BUILD_SHARED_LIBS is enabled, copy .dll files to the executable directory
# if(WIN32)
# get_target_property(open3d_type Open3D::Open3D TYPE)
# if(open3d_type STREQUAL "SHARED_LIBRARY")
# message(STATUS "Copying Open3D.dll to ${CMAKE_CURRENT_BINARY_DIR}/$<CONFIG>")
# add_custom_command(TARGET Draw POST_BUILD
# COMMAND ${CMAKE_COMMAND} -E copy
# ${CMAKE_INSTALL_PREFIX}/bin/Open3D.dll
# ${CMAKE_CURRENT_BINARY_DIR}/$<CONFIG>)
# endif()
# endif()
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!
endif()