2024-04-02 18:37:27 +00:00
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
# 将点云与 mesh 表达合并,不再单独处理点云
|
|
|
|
# 加载: 点云-> mesh
|
|
|
|
# 处理: mesh->点云-> 处理模块 -> mesh
|
|
|
|
#
|
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
# 头文件搜索路径
|
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/..)
|
|
|
|
|
|
|
|
# boost
|
|
|
|
include_directories(D:/vcpkg/installed/x64-windows/include)
|
|
|
|
|
|
|
|
# pcl
|
|
|
|
include_directories(C:/PCL/3rdParty/FLANN/include)
|
|
|
|
include_directories(C:/PCL/3rdParty/VTK/include/vtk-9.3)
|
|
|
|
include_directories(C:/PCL/include/pcl-1.14)
|
|
|
|
|
|
|
|
# qt5
|
|
|
|
include_directories(C:/Qt/5.15.2/msvc2019_64/include/QtQml)
|
|
|
|
|
|
|
|
# lamptool
|
|
|
|
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../LAMPTool)
|
|
|
|
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../LAMPTool/include)
|
|
|
|
|
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
# 链接库
|
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
# pcl
|
|
|
|
link_directories("C:/PCL/3rdParty/FLANN/lib")
|
|
|
|
link_directories("C:/VTK/lib")
|
|
|
|
link_directories("C:/PCL/lib")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
# 链接库
|
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
# pcl
|
|
|
|
link_directories("C:/PCL/3rdParty/FLANN/lib")
|
|
|
|
link_directories("C:/VTK/lib")
|
|
|
|
link_directories("C:/PCL/lib")
|
|
|
|
|
|
|
|
find_package(Qt5 REQUIRED COMPONENTS Core Quick Sql Core Xml Opengl Gui Svg Xmlpatterns Uitools Widgets Qml Printsupport Sensors Quickwidgets Quick Concurrent Openglextensions Charts Datavisualization)
|
|
|
|
find_package(PCL )
|
|
|
|
|
|
|
|
# boost
|
|
|
|
include_directories(D:/vcpkg/installed/x64-windows/include)
|
|
|
|
|
|
|
|
# pcl
|
|
|
|
include_directories(C:/PCL/3rdParty/FLANN/include)
|
|
|
|
include_directories(C:/PCL/3rdParty/VTK/include/vtk-9.3)
|
|
|
|
include_directories(C:/PCL/include/pcl-1.14)
|
|
|
|
|
|
|
|
|
|
|
|
include_directories(${PCL_INCLUDE_DIRS})
|
|
|
|
link_directories(${PCL_LIBRARY_DIRS})
|
|
|
|
add_definitions(${PCL_DEFINITIONS})
|
|
|
|
|
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
# 自动添加include目录
|
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
|
|
|
|
2024-04-07 15:51:25 +00:00
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
# 添加资源文件
|
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
set(_qrc "${CMAKE_CURRENT_SOURCE_DIR}/../qrc/WBCLFZSystemModule.qrc")
|
|
|
|
set(_qrc "${CMAKE_CURRENT_SOURCE_DIR}/../qrc/qianfan.qrc")
|
|
|
|
set(_lang "${CMAKE_CURRENT_SOURCE_DIR}/../qrc/translations.qrc")
|
2024-04-02 18:37:27 +00:00
|
|
|
|
2024-04-07 15:51:25 +00:00
|
|
|
qt5_add_resources(_resource ${_qrc} ${_lang})
|
2024-04-02 18:37:27 +00:00
|
|
|
|
|
|
|
#-----------------------------------------------------------------------------
|
2024-04-07 15:51:25 +00:00
|
|
|
# 源码扫描
|
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
file(GLOB_RECURSE _ui "*.ui")
|
|
|
|
file(GLOB_RECURSE _header "*.h" "*.hxx")
|
|
|
|
file(GLOB_RECURSE _source "*.cpp")
|
|
|
|
qt5_wrap_ui(_interface ${_ui})
|
|
|
|
|
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
# 添加动态库目标
|
2024-04-02 18:37:27 +00:00
|
|
|
#-----------------------------------------------------------------------------
|
2024-04-07 15:51:25 +00:00
|
|
|
add_library(PointCloudOperator
|
|
|
|
${_resource}
|
|
|
|
${_interface}
|
|
|
|
${_header}
|
|
|
|
${_source}
|
2024-05-15 09:27:37 +00:00
|
|
|
MeshOpearatorCommon.cpp
|
|
|
|
MeshOpearatorCommon.h
|
2024-07-09 02:15:46 +00:00
|
|
|
OpenMeshOperator.cpp
|
|
|
|
OpenMeshOperator.h
|
2024-04-07 15:51:25 +00:00
|
|
|
)
|
|
|
|
|
2024-04-02 18:37:27 +00:00
|
|
|
|
|
|
|
|
2024-04-07 15:51:25 +00:00
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
# 添加接口声明宏
|
|
|
|
#-----------------------------------------------------------------------------
|
2024-05-28 00:53:55 +00:00
|
|
|
target_compile_definitions(PointCloudOperator PRIVATE "POINTCLOUDOPERATOR_API")
|
2024-04-02 18:37:27 +00:00
|
|
|
|
2024-04-07 15:51:25 +00:00
|
|
|
list(APPEND _depend_library Common MeshData DataProperty )
|
2024-04-02 18:37:27 +00:00
|
|
|
|
|
|
|
|
|
|
|
list(APPEND _runtimes_libraries
|
|
|
|
Qt5::Widgets Qt5::Xml VTK::CommonComputationalGeometry VTK::CommonCore VTK::CommonDataModel VTK::CommonExecutionModel VTK::CommonMath VTK::CommonMisc VTK::CommonSystem VTK::CommonTransforms VTK::FiltersCore VTK::FiltersExtraction VTK::FiltersGeneral VTK::FiltersStatistics VTK::FiltersVerdict VTK::IOCore VTK::IOLegacy VTK::IOXML VTK::IOXMLParser VTK::ImagingCore VTK::ImagingFourier VTK::ParallelCore VTK::ParallelDIY VTK::doubleconversion VTK::expat VTK::lz4 VTK::lzma VTK::sys VTK::verdict VTK::zlib
|
|
|
|
)
|
|
|
|
|
2024-04-07 15:51:25 +00:00
|
|
|
list(APPEND _runtimes_libraries
|
|
|
|
Qt5::DBus Qt5::Core Qt5::Xml Qt5::OpenGL Qt5::Gui Qt5::Svg Qt5::Widgets Qt5::Qml Qt5::DataVisualization Qt5::Charts Qt5::PrintSupport
|
|
|
|
)
|
|
|
|
|
|
|
|
list(APPEND _runtimes_libraries
|
|
|
|
OpenCASCADE::Freetype OpenCASCADE::TKBO OpenCASCADE::TKBRep OpenCASCADE::TKBool OpenCASCADE::TKCAF OpenCASCADE::TKCDF OpenCASCADE::TKG2d OpenCASCADE::TKG3d OpenCASCADE::TKGeomAlgo OpenCASCADE::TKGeomBase OpenCASCADE::TKHLR OpenCASCADE::TKIGES OpenCASCADE::TKLCAF OpenCASCADE::TKMath OpenCASCADE::TKMesh OpenCASCADE::TKPrim OpenCASCADE::TKSTEP OpenCASCADE::TKSTEP209 OpenCASCADE::TKSTEPAttr OpenCASCADE::TKSTEPBase OpenCASCADE::TKService OpenCASCADE::TKShHealing OpenCASCADE::TKTopAlgo OpenCASCADE::TKV3d OpenCASCADE::TKVCAF OpenCASCADE::TKXCAF OpenCASCADE::TKXDEIGES OpenCASCADE::TKXSBase OpenCASCADE::TKernel Qt5::Widgets Qt5::Xml VTK::CommonColor VTK::CommonComputationalGeometry VTK::CommonCore VTK::CommonDataModel VTK::CommonExecutionModel VTK::CommonMath VTK::CommonMisc VTK::CommonSystem VTK::CommonTransforms VTK::FiltersCore VTK::FiltersExtraction VTK::FiltersGeneral VTK::FiltersGeometry VTK::FiltersSources VTK::FiltersStatistics VTK::IOCore VTK::IOLegacy VTK::IOXML VTK::IOXMLParser VTK::ImagingCore VTK::ImagingFourier VTK::ImagingMath VTK::InteractionStyle VTK::ParallelCore VTK::ParallelDIY VTK::RenderingCore VTK::RenderingFreeType VTK::RenderingOpenGL2 VTK::RenderingUI VTK::RenderingVolume VTK::RenderingVolumeOpenGL2 VTK::doubleconversion VTK::expat VTK::freetype VTK::glew VTK::lz4 VTK::lzma VTK::sys VTK::zlib VTK::IOGeometry
|
2024-07-09 02:15:46 +00:00
|
|
|
OpenMeshCore OpenMeshTools
|
2024-04-07 15:51:25 +00:00
|
|
|
)
|
2024-04-02 18:37:27 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
# 链接依赖库
|
|
|
|
#-----------------------------------------------------------------------------
|
2024-04-07 15:51:25 +00:00
|
|
|
target_link_libraries(PointCloudOperator PRIVATE
|
2024-04-02 18:37:27 +00:00
|
|
|
${_runtimes_libraries}
|
|
|
|
${_depend_library}
|
|
|
|
${PCL_LIBRARIES}
|
|
|
|
)
|
|
|
|
|
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
# 添加依赖关系
|
|
|
|
#-----------------------------------------------------------------------------
|
2024-04-07 15:51:25 +00:00
|
|
|
add_dependencies(PointCloudOperator ${_depend_library} Common)
|
2024-04-02 18:37:27 +00:00
|
|
|
|
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
# 添加运行时依赖关系
|
|
|
|
#-----------------------------------------------------------------------------
|
2024-04-07 15:51:25 +00:00
|
|
|
set(LAMPCAE_PointCloudOperator_Runtimes_Libraries ${_runtimes_libraries} PARENT_SCOPE)
|
2024-04-02 18:37:27 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|