TMP
This commit is contained in:
+6
-15
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user