2021-10-22 14:28:54 +02:00
|
|
|
cmake_minimum_required(VERSION 3.15)
|
|
|
|
|
|
|
|
project(tp LANGUAGES C CXX)
|
|
|
|
|
|
|
|
find_package(Qt5 REQUIRED COMPONENTS Core Gui Widgets)
|
|
|
|
add_subdirectory(external/OpenMesh)
|
2021-11-09 22:17:14 +01:00
|
|
|
add_subdirectory(external/Eigen)
|
2021-10-22 14:28:54 +02:00
|
|
|
|
2021-11-25 15:00:20 +01:00
|
|
|
add_subdirectory(external/MeshReconstruction)
|
|
|
|
target_include_directories(MeshReconstruction INTERFACE
|
|
|
|
external/MeshReconstruction/lib)
|
|
|
|
|
2021-10-22 14:28:54 +02:00
|
|
|
add_executable(${PROJECT_NAME})
|
|
|
|
target_sources(${PROJECT_NAME} PRIVATE
|
|
|
|
resources.qrc
|
|
|
|
src/main.cpp
|
|
|
|
src/main_window.cpp
|
|
|
|
src/main_window.h
|
|
|
|
src/mesh_processor.cpp
|
|
|
|
src/mesh_processor.h
|
|
|
|
src/mesh_view.cpp
|
|
|
|
src/mesh_view.h
|
|
|
|
src/mesh_viewer.cpp
|
|
|
|
src/mesh_viewer.h
|
|
|
|
src/my_mesh.h
|
|
|
|
src/smoothing.cpp
|
|
|
|
src/smoothing.h
|
|
|
|
src/util.cpp
|
2021-11-12 17:08:19 +01:00
|
|
|
src/util.h
|
|
|
|
src/curvature.cpp
|
|
|
|
src/curvature.h
|
|
|
|
src/quad_patch.cpp
|
2021-11-12 20:53:13 +01:00
|
|
|
src/quad_patch.h
|
|
|
|
src/quad_patch_tesselator.cpp
|
2021-11-25 15:00:20 +01:00
|
|
|
src/quad_patch_tesselator.h
|
|
|
|
src/hole_filling.h
|
|
|
|
src/hole_filling.cpp)
|
2021-10-22 14:28:54 +02:00
|
|
|
target_link_libraries(${PROJECT_NAME} PRIVATE
|
|
|
|
Qt5::Core Qt5::Gui Qt5::Widgets
|
2021-11-09 22:17:14 +01:00
|
|
|
OpenMeshCore
|
2021-11-25 15:00:20 +01:00
|
|
|
eigen
|
|
|
|
MeshReconstruction)
|
2021-11-12 21:29:06 +01:00
|
|
|
target_compile_features(${PROJECT_NAME} PRIVATE cxx_std_17)
|
2021-10-22 14:28:54 +02:00
|
|
|
set_target_properties(${PROJECT_NAME} PROPERTIES
|
|
|
|
AUTOMOC ON
|
|
|
|
AUTORCC ON
|
|
|
|
AUTOUIC ON)
|