From fa55a9901c3302b97921200cd27f84cfa687924e Mon Sep 17 00:00:00 2001 From: alemuntoni Date: Thu, 25 Mar 2021 12:43:08 +0100 Subject: [PATCH] cmake configuration to build examples --- CMakeLists.txt | 4 ++ apps/CMakeLists.txt | 12 ++-- apps/metro/CMakeLists.txt | 17 ++++- apps/sample/CMakeLists.txt | 64 +++++++++++++++++++ apps/sample/aabb_binary_tree/CMakeLists.txt | 14 ++++ apps/sample/colorspace/CMakeLists.txt | 14 ++++ apps/sample/polygonmesh_base/CMakeLists.txt | 17 +++++ apps/sample/polygonmesh_dual/CMakeLists.txt | 17 +++++ .../polygonmesh_optimize/CMakeLists.txt | 17 +++++ .../CMakeLists.txt | 17 +++++ apps/sample/polygonmesh_smooth/CMakeLists.txt | 17 +++++ apps/sample/sample.pro | 2 +- apps/sample/space_index_2d/CMakeLists.txt | 16 +++++ apps/sample/space_packer/CMakeLists.txt | 30 +++++++++ .../space_rasterized_packer/CMakeLists.txt | 29 +++++++++ apps/sample/trimesh_align_pair/CMakeLists.txt | 17 +++++ apps/sample/trimesh_allocate/CMakeLists.txt | 17 +++++ apps/sample/trimesh_attribute/CMakeLists.txt | 16 +++++ .../trimesh_attribute_saving/CMakeLists.txt | 17 +++++ .../trimesh_ball_pivoting/CMakeLists.txt | 17 +++++ apps/sample/trimesh_base/CMakeLists.txt | 24 ++++--- apps/sample/trimesh_closest/CMakeLists.txt | 17 +++++ apps/sample/trimesh_clustering/CMakeLists.txt | 16 +++++ apps/sample/trimesh_color/CMakeLists.txt | 17 +++++ apps/sample/trimesh_copy/CMakeLists.txt | 17 +++++ apps/sample/trimesh_create/CMakeLists.txt | 16 +++++ apps/sample/trimesh_curvature/CMakeLists.txt | 16 +++++ .../trimesh_cylinder_clipping/CMakeLists.txt | 17 +++++ .../CMakeLists.txt | 17 +++++ apps/sample/trimesh_fitting/CMakeLists.txt | 16 +++++ apps/sample/trimesh_geodesic/CMakeLists.txt | 17 +++++ apps/sample/trimesh_harmonic/CMakeLists.txt | 17 +++++ apps/sample/trimesh_hole/CMakeLists.txt | 17 +++++ .../trimesh_implicit_smooth/CMakeLists.txt | 17 +++++ apps/sample/trimesh_indexing/CMakeLists.txt | 17 +++++ apps/sample/trimesh_inertia/CMakeLists.txt | 16 +++++ .../trimesh_intersection_mesh/CMakeLists.txt | 16 +++++ .../trimesh_intersection_plane/CMakeLists.txt | 16 +++++ apps/sample/trimesh_isosurface/CMakeLists.txt | 17 +++++ apps/sample/trimesh_join/CMakeLists.txt | 17 +++++ apps/sample/trimesh_kdtree/CMakeLists.txt | 17 +++++ .../CMakeLists.txt | 16 +++++ apps/sample/trimesh_normal/CMakeLists.txt | 16 +++++ apps/sample/trimesh_optional/CMakeLists.txt | 17 +++++ .../CMakeLists.txt | 17 +++++ .../trimesh_pointmatching/CMakeLists.txt | 16 +++++ apps/sample/trimesh_ray/CMakeLists.txt | 17 +++++ apps/sample/trimesh_refine/CMakeLists.txt | 17 +++++ apps/sample/trimesh_remeshing/CMakeLists.txt | 17 +++++ apps/sample/trimesh_sampling/CMakeLists.txt | 16 +++++ apps/sample/trimesh_select/CMakeLists.txt | 16 +++++ apps/sample/trimesh_smooth/CMakeLists.txt | 17 +++++ .../trimesh_split_vertex/CMakeLists.txt | 17 +++++ apps/sample/trimesh_texture/CMakeLists.txt | 31 +++++++++ .../trimesh_texture_clean/CMakeLists.txt | 16 +++++ .../trimesh_topological_cut/CMakeLists.txt | 17 +++++ apps/sample/trimesh_topology/CMakeLists.txt | 16 +++++ apps/sample/trimesh_voronoi/CMakeLists.txt | 17 +++++ .../trimesh_voronoiatlas/CMakeLists.txt | 17 +++++ .../trimesh_voronoiclustering/CMakeLists.txt | 17 +++++ .../trimesh_voronoisampling/CMakeLists.txt | 17 +++++ apps/tridecimator/CMakeLists.txt | 17 ++++- 62 files changed, 1074 insertions(+), 18 deletions(-) create mode 100644 apps/sample/CMakeLists.txt create mode 100644 apps/sample/aabb_binary_tree/CMakeLists.txt create mode 100644 apps/sample/colorspace/CMakeLists.txt create mode 100644 apps/sample/polygonmesh_base/CMakeLists.txt create mode 100644 apps/sample/polygonmesh_dual/CMakeLists.txt create mode 100644 apps/sample/polygonmesh_optimize/CMakeLists.txt create mode 100644 apps/sample/polygonmesh_polychord_collapse/CMakeLists.txt create mode 100644 apps/sample/polygonmesh_smooth/CMakeLists.txt create mode 100644 apps/sample/space_index_2d/CMakeLists.txt create mode 100644 apps/sample/space_packer/CMakeLists.txt create mode 100644 apps/sample/space_rasterized_packer/CMakeLists.txt create mode 100644 apps/sample/trimesh_align_pair/CMakeLists.txt create mode 100644 apps/sample/trimesh_allocate/CMakeLists.txt create mode 100644 apps/sample/trimesh_attribute/CMakeLists.txt create mode 100644 apps/sample/trimesh_attribute_saving/CMakeLists.txt create mode 100644 apps/sample/trimesh_ball_pivoting/CMakeLists.txt create mode 100644 apps/sample/trimesh_closest/CMakeLists.txt create mode 100644 apps/sample/trimesh_clustering/CMakeLists.txt create mode 100644 apps/sample/trimesh_color/CMakeLists.txt create mode 100644 apps/sample/trimesh_copy/CMakeLists.txt create mode 100644 apps/sample/trimesh_create/CMakeLists.txt create mode 100644 apps/sample/trimesh_curvature/CMakeLists.txt create mode 100644 apps/sample/trimesh_cylinder_clipping/CMakeLists.txt create mode 100644 apps/sample/trimesh_disk_parametrization/CMakeLists.txt create mode 100644 apps/sample/trimesh_fitting/CMakeLists.txt create mode 100644 apps/sample/trimesh_geodesic/CMakeLists.txt create mode 100644 apps/sample/trimesh_harmonic/CMakeLists.txt create mode 100644 apps/sample/trimesh_hole/CMakeLists.txt create mode 100644 apps/sample/trimesh_implicit_smooth/CMakeLists.txt create mode 100644 apps/sample/trimesh_indexing/CMakeLists.txt create mode 100644 apps/sample/trimesh_inertia/CMakeLists.txt create mode 100644 apps/sample/trimesh_intersection_mesh/CMakeLists.txt create mode 100644 apps/sample/trimesh_intersection_plane/CMakeLists.txt create mode 100644 apps/sample/trimesh_isosurface/CMakeLists.txt create mode 100644 apps/sample/trimesh_join/CMakeLists.txt create mode 100644 apps/sample/trimesh_kdtree/CMakeLists.txt create mode 100644 apps/sample/trimesh_montecarlo_sampling/CMakeLists.txt create mode 100644 apps/sample/trimesh_normal/CMakeLists.txt create mode 100644 apps/sample/trimesh_optional/CMakeLists.txt create mode 100644 apps/sample/trimesh_pointcloud_sampling/CMakeLists.txt create mode 100644 apps/sample/trimesh_pointmatching/CMakeLists.txt create mode 100644 apps/sample/trimesh_ray/CMakeLists.txt create mode 100644 apps/sample/trimesh_refine/CMakeLists.txt create mode 100644 apps/sample/trimesh_remeshing/CMakeLists.txt create mode 100644 apps/sample/trimesh_sampling/CMakeLists.txt create mode 100644 apps/sample/trimesh_select/CMakeLists.txt create mode 100644 apps/sample/trimesh_smooth/CMakeLists.txt create mode 100644 apps/sample/trimesh_split_vertex/CMakeLists.txt create mode 100644 apps/sample/trimesh_texture/CMakeLists.txt create mode 100644 apps/sample/trimesh_texture_clean/CMakeLists.txt create mode 100644 apps/sample/trimesh_topological_cut/CMakeLists.txt create mode 100644 apps/sample/trimesh_topology/CMakeLists.txt create mode 100644 apps/sample/trimesh_voronoi/CMakeLists.txt create mode 100644 apps/sample/trimesh_voronoiatlas/CMakeLists.txt create mode 100644 apps/sample/trimesh_voronoiclustering/CMakeLists.txt create mode 100644 apps/sample/trimesh_voronoisampling/CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt index d4790194..fc28d096 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -13,6 +13,9 @@ option(ALLOW_SYSTEM_EIGEN "Allow use of system-provided Eigen" ON) option(VCG_HEADER_ONLY "Use VCG library in header only mode" ON) option(VCG_BUILD_EXAMPLES "Build a set of examples of the library" OFF) +set (VCG_INCLUDE_DIRS ${CMAKE_CURRENT_LIST_DIR}) +set (VCG_INCLUDE_DIRS ${CMAKE_CURRENT_LIST_DIR} PARENT_SCOPE) + # Prefer GLVND if(POLICY CMP0072) cmake_policy(SET CMP0072 NEW) @@ -296,4 +299,5 @@ endif() if(VCG_BUILD_EXAMPLES) #TODO make the list of samples to build + add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/apps) endif() diff --git a/apps/CMakeLists.txt b/apps/CMakeLists.txt index dc516ffe..7af54e3a 100644 --- a/apps/CMakeLists.txt +++ b/apps/CMakeLists.txt @@ -1,9 +1,7 @@ -cmake_minimum_required(VERSION 3.1.0 FATAL_ERROR) -set(CMAKE_CXX_STANDARD 11) -set(CMAKE_BUILD_TYPE Release) -set(CMAKE_CXX_STANDARD_REQUIRED ON) #...is required... -set(CMAKE_CXX_EXTENSIONS OFF) #...without compiler extensions like gnu++11 -include_directories(../) -include_directories(../eigenlib) +cmake_minimum_required(VERSION 3.13) + +project(VCGApps) + +add_subdirectory(sample) add_subdirectory(metro) add_subdirectory(tridecimator) diff --git a/apps/metro/CMakeLists.txt b/apps/metro/CMakeLists.txt index f628ace7..aa5ec471 100644 --- a/apps/metro/CMakeLists.txt +++ b/apps/metro/CMakeLists.txt @@ -1,2 +1,17 @@ +cmake_minimum_required(VERSION 3.13) project (metro) -add_executable(metro metro.cpp ../../wrap/ply/plylib.cpp) + +if (VCG_HEADER_ONLY) + set(SOURCES + metro.cpp + ${VCG_INCLUDE_DIRS}/wrap/ply/plylib.cpp) +endif() + +add_executable(metro + ${SOURCES}) + +target_link_libraries( + metro + PUBLIC + vcglib + ) diff --git a/apps/sample/CMakeLists.txt b/apps/sample/CMakeLists.txt new file mode 100644 index 00000000..a1846e1b --- /dev/null +++ b/apps/sample/CMakeLists.txt @@ -0,0 +1,64 @@ +cmake_minimum_required(VERSION 3.13) +project(VCGExamples) + +set(VCG_EXAMPLE_PROJECTS + aabb_binary_tree + colorspace + polygonmesh_base + polygonmesh_dual + polygonmesh_optimize + polygonmesh_polychord_collapse + polygonmesh_smooth + space_index_2d + space_packer + space_rasterized_packer + trimesh_align_pair + trimesh_allocate + trimesh_attribute + trimesh_attribute_saving + trimesh_ball_pivoting + trimesh_base + trimesh_closest + trimesh_clustering + trimesh_color + trimesh_copy + trimesh_create + trimesh_curvature + trimesh_cylinder_clipping + trimesh_disk_parametrization + trimesh_fitting + trimesh_geodesic + trimesh_harmonic + trimesh_hole + trimesh_implicit_smooth + trimesh_indexing + trimesh_inertia + trimesh_intersection_plane + trimesh_intersection_mesh + trimesh_isosurface + trimesh_join + trimesh_kdtree + trimesh_montecarlo_sampling + trimesh_normal + trimesh_optional + trimesh_pointmatching + trimesh_pointcloud_sampling + trimesh_ray + trimesh_refine + trimesh_remeshing + trimesh_sampling + trimesh_select + trimesh_smooth + trimesh_split_vertex + trimesh_texture + trimesh_texture_clean + trimesh_topology + trimesh_topological_cut + trimesh_voronoi + trimesh_voronoiatlas + trimesh_voronoiclustering + trimesh_voronoisampling) + +foreach(VCG_EXAMPLE ${VCG_EXAMPLE_PROJECTS}) + add_subdirectory(${VCG_EXAMPLE}) +endforeach() diff --git a/apps/sample/aabb_binary_tree/CMakeLists.txt b/apps/sample/aabb_binary_tree/CMakeLists.txt new file mode 100644 index 00000000..bccc0ec7 --- /dev/null +++ b/apps/sample/aabb_binary_tree/CMakeLists.txt @@ -0,0 +1,14 @@ +cmake_minimum_required(VERSION 3.13) +project(aabb_binary_tree) + +set(SOURCES + aabb_binary_tree.cpp) + +add_executable(aabb_binary_tree + ${SOURCES}) + +target_link_libraries( + aabb_binary_tree + PUBLIC + vcglib + ) diff --git a/apps/sample/colorspace/CMakeLists.txt b/apps/sample/colorspace/CMakeLists.txt new file mode 100644 index 00000000..c6b2d5a0 --- /dev/null +++ b/apps/sample/colorspace/CMakeLists.txt @@ -0,0 +1,14 @@ +cmake_minimum_required(VERSION 3.13) +project(colorspace) + +set(SOURCES + colorspace.cpp) + +add_executable(colorspace + ${SOURCES}) + +target_link_libraries( + colorspace + PUBLIC + vcglib + ) diff --git a/apps/sample/polygonmesh_base/CMakeLists.txt b/apps/sample/polygonmesh_base/CMakeLists.txt new file mode 100644 index 00000000..567a8a85 --- /dev/null +++ b/apps/sample/polygonmesh_base/CMakeLists.txt @@ -0,0 +1,17 @@ +cmake_minimum_required(VERSION 3.13) +project(polygonmesh_base) + +if (VCG_HEADER_ONLY) + set(SOURCES + polygonmesh.cpp + ${VCG_INCLUDE_DIRS}/wrap/ply/plylib.cpp) +endif() + +add_executable(polygonmesh_base + ${SOURCES}) + +target_link_libraries( + polygonmesh_base + PUBLIC + vcglib + ) diff --git a/apps/sample/polygonmesh_dual/CMakeLists.txt b/apps/sample/polygonmesh_dual/CMakeLists.txt new file mode 100644 index 00000000..40018f75 --- /dev/null +++ b/apps/sample/polygonmesh_dual/CMakeLists.txt @@ -0,0 +1,17 @@ +cmake_minimum_required(VERSION 3.13) +project(polygonmesh_dual) + +if (VCG_HEADER_ONLY) + set(SOURCES + polygonmesh_dual.cpp + ${VCG_INCLUDE_DIRS}/wrap/ply/plylib.cpp) +endif() + +add_executable(polygonmesh_dual + ${SOURCES}) + +target_link_libraries( + polygonmesh_dual + PUBLIC + vcglib + ) diff --git a/apps/sample/polygonmesh_optimize/CMakeLists.txt b/apps/sample/polygonmesh_optimize/CMakeLists.txt new file mode 100644 index 00000000..07f572db --- /dev/null +++ b/apps/sample/polygonmesh_optimize/CMakeLists.txt @@ -0,0 +1,17 @@ +cmake_minimum_required(VERSION 3.13) +project(polygonmesh_optimize) + +if (VCG_HEADER_ONLY) + set(SOURCES + polygonmesh_optimize.cpp + ${VCG_INCLUDE_DIRS}/wrap/ply/plylib.cpp) +endif() + +add_executable(polygonmesh_optimize + ${SOURCES}) + +target_link_libraries( + polygonmesh_optimize + PUBLIC + vcglib + ) diff --git a/apps/sample/polygonmesh_polychord_collapse/CMakeLists.txt b/apps/sample/polygonmesh_polychord_collapse/CMakeLists.txt new file mode 100644 index 00000000..0ac97fc7 --- /dev/null +++ b/apps/sample/polygonmesh_polychord_collapse/CMakeLists.txt @@ -0,0 +1,17 @@ +cmake_minimum_required(VERSION 3.13) +project(polygonmesh_polychord_collapse) + +if (VCG_HEADER_ONLY) + set(SOURCES + polygonmesh_polychord_collapse.cpp + ${VCG_INCLUDE_DIRS}/wrap/ply/plylib.cpp) +endif() + +add_executable(polygonmesh_polychord_collapse + ${SOURCES}) + +target_link_libraries( + polygonmesh_polychord_collapse + PUBLIC + vcglib + ) diff --git a/apps/sample/polygonmesh_smooth/CMakeLists.txt b/apps/sample/polygonmesh_smooth/CMakeLists.txt new file mode 100644 index 00000000..002bb6db --- /dev/null +++ b/apps/sample/polygonmesh_smooth/CMakeLists.txt @@ -0,0 +1,17 @@ +cmake_minimum_required(VERSION 3.13) +project(polygonmesh_smooth) + +if (VCG_HEADER_ONLY) + set(SOURCES + polygonmesh_smooth.cpp + ${VCG_INCLUDE_DIRS}/wrap/ply/plylib.cpp) +endif() + +add_executable(polygonmesh_smooth + ${SOURCES}) + +target_link_libraries( + polygonmesh_smooth + PUBLIC + vcglib + ) diff --git a/apps/sample/sample.pro b/apps/sample/sample.pro index 1036b4d2..0a99190e 100644 --- a/apps/sample/sample.pro +++ b/apps/sample/sample.pro @@ -60,4 +60,4 @@ SUBDIRS = \ trimesh_voronoi \ trimesh_voronoiatlas \ trimesh_voronoiclustering \ - trimesh_voronoisampling \ + trimesh_voronoisampling diff --git a/apps/sample/space_index_2d/CMakeLists.txt b/apps/sample/space_index_2d/CMakeLists.txt new file mode 100644 index 00000000..b5c07abd --- /dev/null +++ b/apps/sample/space_index_2d/CMakeLists.txt @@ -0,0 +1,16 @@ +cmake_minimum_required(VERSION 3.13) +project(space_index_2d) + +if (VCG_HEADER_ONLY) + set(SOURCES + space_index_2d.cpp) +endif() + +add_executable(space_index_2d + ${SOURCES}) + +target_link_libraries( + space_index_2d + PUBLIC + vcglib + ) diff --git a/apps/sample/space_packer/CMakeLists.txt b/apps/sample/space_packer/CMakeLists.txt new file mode 100644 index 00000000..69d3e0fd --- /dev/null +++ b/apps/sample/space_packer/CMakeLists.txt @@ -0,0 +1,30 @@ +cmake_minimum_required(VERSION 3.13) +project(space_packer) + +find_package( + Qt5 + COMPONENTS OpenGL Svg) + +if (TARGET Qt5::OpenGL AND TARGET Qt5::Svg) + + if (VCG_HEADER_ONLY) + set(SOURCES + space_packer.cpp + ${VCG_INCLUDE_DIRS}/wrap/qt/Outline2ToQImage.cpp + ${VCG_INCLUDE_DIRS}/wrap/qt/outline2_rasterizer.cpp) + endif() + + add_executable(space_packer + ${SOURCES}) + + target_link_libraries( + space_packer + PUBLIC + vcglib + Qt5::OpenGL + Qt5::Svg + ) +else() + message( + STATUS "VCG examples - Skipping space_packer example") +endif() diff --git a/apps/sample/space_rasterized_packer/CMakeLists.txt b/apps/sample/space_rasterized_packer/CMakeLists.txt new file mode 100644 index 00000000..bbe86336 --- /dev/null +++ b/apps/sample/space_rasterized_packer/CMakeLists.txt @@ -0,0 +1,29 @@ +cmake_minimum_required(VERSION 3.13) +project(space_rasterized_packer) + +find_package( + Qt5 + COMPONENTS OpenGL Svg) + +if (TARGET Qt5::OpenGL AND TARGET Qt5::Svg) + if (VCG_HEADER_ONLY) + set(SOURCES + space_rasterized_packer.cpp + ${VCG_INCLUDE_DIRS}/wrap/qt/Outline2ToQImage.cpp + ${VCG_INCLUDE_DIRS}/wrap/qt/outline2_rasterizer.cpp) + endif() + + add_executable(space_rasterized_packer + ${SOURCES}) + + target_link_libraries( + space_rasterized_packer + PUBLIC + vcglib + Qt5::OpenGL + Qt5::Svg + ) +else() + message( + STATUS "VCG examples - Skipping space_rasterized_packer example") +endif() diff --git a/apps/sample/trimesh_align_pair/CMakeLists.txt b/apps/sample/trimesh_align_pair/CMakeLists.txt new file mode 100644 index 00000000..34ebd62c --- /dev/null +++ b/apps/sample/trimesh_align_pair/CMakeLists.txt @@ -0,0 +1,17 @@ +cmake_minimum_required(VERSION 3.13) +project(trimesh_align_pair) + +if (VCG_HEADER_ONLY) + set(SOURCES + trimesh_align_pair.cpp + ${VCG_INCLUDE_DIRS}/wrap/ply/plylib.cpp) +endif() + +add_executable(trimesh_align_pair + ${SOURCES}) + +target_link_libraries( + trimesh_align_pair + PUBLIC + vcglib + ) diff --git a/apps/sample/trimesh_allocate/CMakeLists.txt b/apps/sample/trimesh_allocate/CMakeLists.txt new file mode 100644 index 00000000..00e5dafd --- /dev/null +++ b/apps/sample/trimesh_allocate/CMakeLists.txt @@ -0,0 +1,17 @@ +cmake_minimum_required(VERSION 3.13) +project(trimesh_allocate) + +if (VCG_HEADER_ONLY) + set(SOURCES + trimesh_allocate.cpp + ${VCG_INCLUDE_DIRS}/wrap/ply/plylib.cpp) +endif() + +add_executable(trimesh_allocate + ${SOURCES}) + +target_link_libraries( + trimesh_allocate + PUBLIC + vcglib + ) diff --git a/apps/sample/trimesh_attribute/CMakeLists.txt b/apps/sample/trimesh_attribute/CMakeLists.txt new file mode 100644 index 00000000..54a08850 --- /dev/null +++ b/apps/sample/trimesh_attribute/CMakeLists.txt @@ -0,0 +1,16 @@ +cmake_minimum_required(VERSION 3.13) +project(trimesh_attribute) + +if (VCG_HEADER_ONLY) + set(SOURCES + trimesh_attribute.cpp) +endif() + +add_executable(trimesh_attribute + ${SOURCES}) + +target_link_libraries( + trimesh_attribute + PUBLIC + vcglib + ) diff --git a/apps/sample/trimesh_attribute_saving/CMakeLists.txt b/apps/sample/trimesh_attribute_saving/CMakeLists.txt new file mode 100644 index 00000000..56572ba8 --- /dev/null +++ b/apps/sample/trimesh_attribute_saving/CMakeLists.txt @@ -0,0 +1,17 @@ +cmake_minimum_required(VERSION 3.13) +project(trimesh_attribute_saving) + +if (VCG_HEADER_ONLY) + set(SOURCES + trimesh_attribute_saving.cpp + ${VCG_INCLUDE_DIRS}/wrap/ply/plylib.cpp) +endif() + +add_executable(trimesh_attribute_saving + ${SOURCES}) + +target_link_libraries( + trimesh_attribute_saving + PUBLIC + vcglib + ) diff --git a/apps/sample/trimesh_ball_pivoting/CMakeLists.txt b/apps/sample/trimesh_ball_pivoting/CMakeLists.txt new file mode 100644 index 00000000..df6f55eb --- /dev/null +++ b/apps/sample/trimesh_ball_pivoting/CMakeLists.txt @@ -0,0 +1,17 @@ +cmake_minimum_required(VERSION 3.13) +project(trimesh_ball_pivoting) + +if (VCG_HEADER_ONLY) + set(SOURCES + trimesh_ball_pivoting.cpp + ${VCG_INCLUDE_DIRS}/wrap/ply/plylib.cpp) +endif() + +add_executable(trimesh_ball_pivoting + ${SOURCES}) + +target_link_libraries( + trimesh_ball_pivoting + PUBLIC + vcglib + ) diff --git a/apps/sample/trimesh_base/CMakeLists.txt b/apps/sample/trimesh_base/CMakeLists.txt index 8939a675..b87de841 100644 --- a/apps/sample/trimesh_base/CMakeLists.txt +++ b/apps/sample/trimesh_base/CMakeLists.txt @@ -1,8 +1,16 @@ -cmake_minimum_required(VERSION 3.1.0 FATAL_ERROR) -set(CMAKE_CXX_STANDARD 11) -set(CMAKE_CXX_STANDARD_REQUIRED ON) #...is required... -set(CMAKE_CXX_EXTENSIONS OFF) #...without compiler extensions like gnu++11 -project (trimesh_base) -add_executable(trimesh_base trimesh_base.cpp) -include_directories(../../..) -include_directories(../../../eigenlib) +cmake_minimum_required(VERSION 3.13) +project(trimesh_base) + +if (VCG_HEADER_ONLY) + set(SOURCES + trimesh_base.cpp) +endif() + +add_executable(trimesh_base + ${SOURCES}) + +target_link_libraries( + trimesh_base + PUBLIC + vcglib + ) diff --git a/apps/sample/trimesh_closest/CMakeLists.txt b/apps/sample/trimesh_closest/CMakeLists.txt new file mode 100644 index 00000000..4e61aa77 --- /dev/null +++ b/apps/sample/trimesh_closest/CMakeLists.txt @@ -0,0 +1,17 @@ +cmake_minimum_required(VERSION 3.13) +project(trimesh_closest) + +if (VCG_HEADER_ONLY) + set(SOURCES + trimesh_closest.cpp + ${VCG_INCLUDE_DIRS}/wrap/ply/plylib.cpp) +endif() + +add_executable(trimesh_closest + ${SOURCES}) + +target_link_libraries( + trimesh_closest + PUBLIC + vcglib + ) diff --git a/apps/sample/trimesh_clustering/CMakeLists.txt b/apps/sample/trimesh_clustering/CMakeLists.txt new file mode 100644 index 00000000..ec0a1361 --- /dev/null +++ b/apps/sample/trimesh_clustering/CMakeLists.txt @@ -0,0 +1,16 @@ +cmake_minimum_required(VERSION 3.13) +project(trimesh_clustering) + +if (VCG_HEADER_ONLY) + set(SOURCES + trimesh_clustering.cpp + ${VCG_INCLUDE_DIRS}/wrap/ply/plylib.cpp) +endif() + +add_executable(trimesh_clustering + ${SOURCES}) + +target_link_libraries( + trimesh_clustering + PUBLIC vcglib + ) diff --git a/apps/sample/trimesh_color/CMakeLists.txt b/apps/sample/trimesh_color/CMakeLists.txt new file mode 100644 index 00000000..ecf09f09 --- /dev/null +++ b/apps/sample/trimesh_color/CMakeLists.txt @@ -0,0 +1,17 @@ +cmake_minimum_required(VERSION 3.13) +project(trimesh_color) + +if (VCG_HEADER_ONLY) + set(SOURCES + trimesh_color.cpp + ${VCG_INCLUDE_DIRS}/wrap/ply/plylib.cpp) +endif() + +add_executable(trimesh_color + ${SOURCES}) + +target_link_libraries( + trimesh_color + PUBLIC + vcglib + ) diff --git a/apps/sample/trimesh_copy/CMakeLists.txt b/apps/sample/trimesh_copy/CMakeLists.txt new file mode 100644 index 00000000..431fb603 --- /dev/null +++ b/apps/sample/trimesh_copy/CMakeLists.txt @@ -0,0 +1,17 @@ +cmake_minimum_required(VERSION 3.13) +project(trimesh_copy) + +if (VCG_HEADER_ONLY) + set(SOURCES + trimesh_copy.cpp + ${VCG_INCLUDE_DIRS}/wrap/ply/plylib.cpp) +endif() + +add_executable(trimesh_copy + ${SOURCES}) + +target_link_libraries( + trimesh_copy + PUBLIC + vcglib + ) diff --git a/apps/sample/trimesh_create/CMakeLists.txt b/apps/sample/trimesh_create/CMakeLists.txt new file mode 100644 index 00000000..a9ba842b --- /dev/null +++ b/apps/sample/trimesh_create/CMakeLists.txt @@ -0,0 +1,16 @@ +cmake_minimum_required(VERSION 3.13) +project(trimesh_create) + +if (VCG_HEADER_ONLY) + set(SOURCES + trimesh_create.cpp) +endif() + +add_executable(trimesh_create + ${SOURCES}) + +target_link_libraries( + trimesh_create + PUBLIC + vcglib + ) diff --git a/apps/sample/trimesh_curvature/CMakeLists.txt b/apps/sample/trimesh_curvature/CMakeLists.txt new file mode 100644 index 00000000..a09fe6e1 --- /dev/null +++ b/apps/sample/trimesh_curvature/CMakeLists.txt @@ -0,0 +1,16 @@ +cmake_minimum_required(VERSION 3.13) +project(trimesh_curvature) + +if (VCG_HEADER_ONLY) + set(SOURCES + trimesh_curvature.cpp) +endif() + +add_executable(trimesh_curvature + ${SOURCES}) + +target_link_libraries( + trimesh_curvature + PUBLIC + vcglib + ) diff --git a/apps/sample/trimesh_cylinder_clipping/CMakeLists.txt b/apps/sample/trimesh_cylinder_clipping/CMakeLists.txt new file mode 100644 index 00000000..96ceb24c --- /dev/null +++ b/apps/sample/trimesh_cylinder_clipping/CMakeLists.txt @@ -0,0 +1,17 @@ +cmake_minimum_required(VERSION 3.13) +project(trimesh_cylinder_clipping) + +if (VCG_HEADER_ONLY) + set(SOURCES + trimesh_cylinder_clipping.cpp + ${VCG_INCLUDE_DIRS}/wrap/ply/plylib.cpp) +endif() + +add_executable(trimesh_cylinder_clipping + ${SOURCES}) + +target_link_libraries( + trimesh_cylinder_clipping + PUBLIC + vcglib + ) diff --git a/apps/sample/trimesh_disk_parametrization/CMakeLists.txt b/apps/sample/trimesh_disk_parametrization/CMakeLists.txt new file mode 100644 index 00000000..02edee20 --- /dev/null +++ b/apps/sample/trimesh_disk_parametrization/CMakeLists.txt @@ -0,0 +1,17 @@ +cmake_minimum_required(VERSION 3.13) +project(trimesh_disk_parametrization) + +if (VCG_HEADER_ONLY) + set(SOURCES + trimesh_disk_parametrization.cpp + ${VCG_INCLUDE_DIRS}/wrap/ply/plylib.cpp) +endif() + +add_executable(trimesh_disk_parametrization + ${SOURCES}) + +target_link_libraries( + trimesh_disk_parametrization + PUBLIC + vcglib + ) diff --git a/apps/sample/trimesh_fitting/CMakeLists.txt b/apps/sample/trimesh_fitting/CMakeLists.txt new file mode 100644 index 00000000..c93263b9 --- /dev/null +++ b/apps/sample/trimesh_fitting/CMakeLists.txt @@ -0,0 +1,16 @@ +cmake_minimum_required(VERSION 3.13) +project(trimesh_fitting) + +if (VCG_HEADER_ONLY) + set(SOURCES + trimesh_fitting.cpp) +endif() + +add_executable(trimesh_fitting + ${SOURCES}) + +target_link_libraries( + trimesh_fitting + PUBLIC + vcglib + ) diff --git a/apps/sample/trimesh_geodesic/CMakeLists.txt b/apps/sample/trimesh_geodesic/CMakeLists.txt new file mode 100644 index 00000000..f410e7c2 --- /dev/null +++ b/apps/sample/trimesh_geodesic/CMakeLists.txt @@ -0,0 +1,17 @@ +cmake_minimum_required(VERSION 3.13) +project(trimesh_geodesic) + +if (VCG_HEADER_ONLY) + set(SOURCES + trimesh_geodesic.cpp + ${VCG_INCLUDE_DIRS}/wrap/ply/plylib.cpp) +endif() + +add_executable(trimesh_geodesic + ${SOURCES}) + +target_link_libraries( + trimesh_geodesic + PUBLIC + vcglib + ) diff --git a/apps/sample/trimesh_harmonic/CMakeLists.txt b/apps/sample/trimesh_harmonic/CMakeLists.txt new file mode 100644 index 00000000..b525fced --- /dev/null +++ b/apps/sample/trimesh_harmonic/CMakeLists.txt @@ -0,0 +1,17 @@ +cmake_minimum_required(VERSION 3.13) +project(trimesh_harmonic) + +if (VCG_HEADER_ONLY) + set(SOURCES + trimesh_harmonic.cpp + ${VCG_INCLUDE_DIRS}/wrap/ply/plylib.cpp) +endif() + +add_executable(trimesh_harmonic + ${SOURCES}) + +target_link_libraries( + trimesh_harmonic + PUBLIC + vcglib + ) diff --git a/apps/sample/trimesh_hole/CMakeLists.txt b/apps/sample/trimesh_hole/CMakeLists.txt new file mode 100644 index 00000000..da677588 --- /dev/null +++ b/apps/sample/trimesh_hole/CMakeLists.txt @@ -0,0 +1,17 @@ +cmake_minimum_required(VERSION 3.13) +project(trimesh_hole) + +if (VCG_HEADER_ONLY) + set(SOURCES + trimesh_hole.cpp + ${VCG_INCLUDE_DIRS}/wrap/ply/plylib.cpp) +endif() + +add_executable(trimesh_hole + ${SOURCES}) + +target_link_libraries( + trimesh_hole + PUBLIC + vcglib + ) diff --git a/apps/sample/trimesh_implicit_smooth/CMakeLists.txt b/apps/sample/trimesh_implicit_smooth/CMakeLists.txt new file mode 100644 index 00000000..a9c3f74d --- /dev/null +++ b/apps/sample/trimesh_implicit_smooth/CMakeLists.txt @@ -0,0 +1,17 @@ +cmake_minimum_required(VERSION 3.13) +project(trimesh_implicit_smooth) + +if (VCG_HEADER_ONLY) + set(SOURCES + trimesh_implicit_smooth.cpp + ${VCG_INCLUDE_DIRS}/wrap/ply/plylib.cpp) +endif() + +add_executable(trimesh_implicit_smooth + ${SOURCES}) + +target_link_libraries( + trimesh_implicit_smooth + PUBLIC + vcglib + ) diff --git a/apps/sample/trimesh_indexing/CMakeLists.txt b/apps/sample/trimesh_indexing/CMakeLists.txt new file mode 100644 index 00000000..80df98e5 --- /dev/null +++ b/apps/sample/trimesh_indexing/CMakeLists.txt @@ -0,0 +1,17 @@ +cmake_minimum_required(VERSION 3.13) +project(trimesh_indexing) + +if (VCG_HEADER_ONLY) + set(SOURCES + trimesh_indexing.cpp + ${VCG_INCLUDE_DIRS}/wrap/ply/plylib.cpp) +endif() + +add_executable(trimesh_indexing + ${SOURCES}) + +target_link_libraries( + trimesh_indexing + PUBLIC + vcglib + ) diff --git a/apps/sample/trimesh_inertia/CMakeLists.txt b/apps/sample/trimesh_inertia/CMakeLists.txt new file mode 100644 index 00000000..49dc45ed --- /dev/null +++ b/apps/sample/trimesh_inertia/CMakeLists.txt @@ -0,0 +1,16 @@ +cmake_minimum_required(VERSION 3.13) +project(trimesh_inertia) + +if (VCG_HEADER_ONLY) + set(SOURCES + trimesh_inertia.cpp) +endif() + +add_executable(trimesh_inertia + ${SOURCES}) + +target_link_libraries( + trimesh_inertia + PUBLIC + vcglib + ) diff --git a/apps/sample/trimesh_intersection_mesh/CMakeLists.txt b/apps/sample/trimesh_intersection_mesh/CMakeLists.txt new file mode 100644 index 00000000..d76bb7ad --- /dev/null +++ b/apps/sample/trimesh_intersection_mesh/CMakeLists.txt @@ -0,0 +1,16 @@ +cmake_minimum_required(VERSION 3.13) +project(trimesh_intersection_mesh) + +if (VCG_HEADER_ONLY) + set(SOURCES + trimesh_intersection_mesh.cpp) +endif() + +add_executable(trimesh_intersection_mesh + ${SOURCES}) + +target_link_libraries( + trimesh_intersection_mesh + PUBLIC + vcglib + ) diff --git a/apps/sample/trimesh_intersection_plane/CMakeLists.txt b/apps/sample/trimesh_intersection_plane/CMakeLists.txt new file mode 100644 index 00000000..0a317f06 --- /dev/null +++ b/apps/sample/trimesh_intersection_plane/CMakeLists.txt @@ -0,0 +1,16 @@ +cmake_minimum_required(VERSION 3.13) +project(trimesh_intersection_plane) + +if (VCG_HEADER_ONLY) + set(SOURCES + trimesh_intersection_plane.cpp) +endif() + +add_executable(trimesh_intersection_plane + ${SOURCES}) + +target_link_libraries( + trimesh_intersection_plane + PUBLIC + vcglib + ) diff --git a/apps/sample/trimesh_isosurface/CMakeLists.txt b/apps/sample/trimesh_isosurface/CMakeLists.txt new file mode 100644 index 00000000..d1d07423 --- /dev/null +++ b/apps/sample/trimesh_isosurface/CMakeLists.txt @@ -0,0 +1,17 @@ +cmake_minimum_required(VERSION 3.13) +project(trimesh_isosurface) + +if (VCG_HEADER_ONLY) + set(SOURCES + trimesh_isosurface.cpp + ${VCG_INCLUDE_DIRS}/wrap/ply/plylib.cpp) +endif() + +add_executable(trimesh_isosurface + ${SOURCES}) + +target_link_libraries( + trimesh_isosurface + PUBLIC + vcglib + ) diff --git a/apps/sample/trimesh_join/CMakeLists.txt b/apps/sample/trimesh_join/CMakeLists.txt new file mode 100644 index 00000000..e783f456 --- /dev/null +++ b/apps/sample/trimesh_join/CMakeLists.txt @@ -0,0 +1,17 @@ +cmake_minimum_required(VERSION 3.13) +project(trimesh_join) + +if (VCG_HEADER_ONLY) + set(SOURCES + trimesh_join.cpp + ${VCG_INCLUDE_DIRS}/wrap/ply/plylib.cpp) +endif() + +add_executable(trimesh_join + ${SOURCES}) + +target_link_libraries( + trimesh_join + PUBLIC + vcglib + ) diff --git a/apps/sample/trimesh_kdtree/CMakeLists.txt b/apps/sample/trimesh_kdtree/CMakeLists.txt new file mode 100644 index 00000000..79587c32 --- /dev/null +++ b/apps/sample/trimesh_kdtree/CMakeLists.txt @@ -0,0 +1,17 @@ +cmake_minimum_required(VERSION 3.13) +project(trimesh_kdtree) + +if (VCG_HEADER_ONLY) + set(SOURCES + trimesh_kdtree.cpp + ${VCG_INCLUDE_DIRS}/wrap/ply/plylib.cpp) +endif() + +add_executable(trimesh_kdtree + ${SOURCES}) + +target_link_libraries( + trimesh_kdtree + PUBLIC + vcglib + ) diff --git a/apps/sample/trimesh_montecarlo_sampling/CMakeLists.txt b/apps/sample/trimesh_montecarlo_sampling/CMakeLists.txt new file mode 100644 index 00000000..6ae8946e --- /dev/null +++ b/apps/sample/trimesh_montecarlo_sampling/CMakeLists.txt @@ -0,0 +1,16 @@ +cmake_minimum_required(VERSION 3.13) +project(trimesh_montecarlo_sampling) + +if (VCG_HEADER_ONLY) + set(SOURCES + trimesh_montecarlo_sampling.cpp) +endif() + +add_executable(trimesh_montecarlo_sampling + ${SOURCES}) + +target_link_libraries( + trimesh_montecarlo_sampling + PUBLIC + vcglib + ) diff --git a/apps/sample/trimesh_normal/CMakeLists.txt b/apps/sample/trimesh_normal/CMakeLists.txt new file mode 100644 index 00000000..06f24aca --- /dev/null +++ b/apps/sample/trimesh_normal/CMakeLists.txt @@ -0,0 +1,16 @@ +cmake_minimum_required(VERSION 3.13) +project(trimesh_normal) + +if (VCG_HEADER_ONLY) + set(SOURCES + trimesh_normal.cpp) +endif() + +add_executable(trimesh_normal + ${SOURCES}) + +target_link_libraries( + trimesh_normal + PUBLIC + vcglib + ) diff --git a/apps/sample/trimesh_optional/CMakeLists.txt b/apps/sample/trimesh_optional/CMakeLists.txt new file mode 100644 index 00000000..f6195fc2 --- /dev/null +++ b/apps/sample/trimesh_optional/CMakeLists.txt @@ -0,0 +1,17 @@ +cmake_minimum_required(VERSION 3.13) +project(trimesh_optional) + +if (VCG_HEADER_ONLY) + set(SOURCES + trimesh_optional.cpp + ${VCG_INCLUDE_DIRS}/wrap/ply/plylib.cpp) +endif() + +add_executable(trimesh_optional + ${SOURCES}) + +target_link_libraries( + trimesh_optional + PUBLIC + vcglib + ) diff --git a/apps/sample/trimesh_pointcloud_sampling/CMakeLists.txt b/apps/sample/trimesh_pointcloud_sampling/CMakeLists.txt new file mode 100644 index 00000000..1e8cfa07 --- /dev/null +++ b/apps/sample/trimesh_pointcloud_sampling/CMakeLists.txt @@ -0,0 +1,17 @@ +cmake_minimum_required(VERSION 3.13) +project(trimesh_pointcloud_sampling) + +if (VCG_HEADER_ONLY) + set(SOURCES + trimesh_pointcloud_sampling.cpp + ${VCG_INCLUDE_DIRS}/wrap/ply/plylib.cpp) +endif() + +add_executable(trimesh_pointcloud_sampling + ${SOURCES}) + +target_link_libraries( + trimesh_pointcloud_sampling + PUBLIC + vcglib + ) diff --git a/apps/sample/trimesh_pointmatching/CMakeLists.txt b/apps/sample/trimesh_pointmatching/CMakeLists.txt new file mode 100644 index 00000000..f7ba0aae --- /dev/null +++ b/apps/sample/trimesh_pointmatching/CMakeLists.txt @@ -0,0 +1,16 @@ +cmake_minimum_required(VERSION 3.13) +project(trimesh_pointmatching) + +if (VCG_HEADER_ONLY) + set(SOURCES + trimesh_pointmatching.cpp) +endif() + +add_executable(trimesh_pointmatching + ${SOURCES}) + +target_link_libraries( + trimesh_pointmatching + PUBLIC + vcglib + ) diff --git a/apps/sample/trimesh_ray/CMakeLists.txt b/apps/sample/trimesh_ray/CMakeLists.txt new file mode 100644 index 00000000..e9b07b96 --- /dev/null +++ b/apps/sample/trimesh_ray/CMakeLists.txt @@ -0,0 +1,17 @@ +cmake_minimum_required(VERSION 3.13) +project(trimesh_ray) + +if (VCG_HEADER_ONLY) + set(SOURCES + trimesh_ray.cpp + ${VCG_INCLUDE_DIRS}/wrap/ply/plylib.cpp) +endif() + +add_executable(trimesh_ray + ${SOURCES}) + +target_link_libraries( + trimesh_ray + PUBLIC + vcglib + ) diff --git a/apps/sample/trimesh_refine/CMakeLists.txt b/apps/sample/trimesh_refine/CMakeLists.txt new file mode 100644 index 00000000..88bbe644 --- /dev/null +++ b/apps/sample/trimesh_refine/CMakeLists.txt @@ -0,0 +1,17 @@ +cmake_minimum_required(VERSION 3.13) +project(trimesh_refine) + +if (VCG_HEADER_ONLY) + set(SOURCES + trimesh_refine.cpp + ${VCG_INCLUDE_DIRS}/wrap/ply/plylib.cpp) +endif() + +add_executable(trimesh_refine + ${SOURCES}) + +target_link_libraries( + trimesh_refine + PUBLIC + vcglib + ) diff --git a/apps/sample/trimesh_remeshing/CMakeLists.txt b/apps/sample/trimesh_remeshing/CMakeLists.txt new file mode 100644 index 00000000..72377e8a --- /dev/null +++ b/apps/sample/trimesh_remeshing/CMakeLists.txt @@ -0,0 +1,17 @@ +cmake_minimum_required(VERSION 3.13) +project(trimesh_remeshing) + +if (VCG_HEADER_ONLY) + set(SOURCES + trimesh_remeshing.cpp + ${VCG_INCLUDE_DIRS}/wrap/ply/plylib.cpp) +endif() + +add_executable(trimesh_remeshing + ${SOURCES}) + +target_link_libraries( + trimesh_remeshing + PUBLIC + vcglib + ) diff --git a/apps/sample/trimesh_sampling/CMakeLists.txt b/apps/sample/trimesh_sampling/CMakeLists.txt new file mode 100644 index 00000000..a720ceeb --- /dev/null +++ b/apps/sample/trimesh_sampling/CMakeLists.txt @@ -0,0 +1,16 @@ +cmake_minimum_required(VERSION 3.13) +project(trimesh_sampling) + +if (VCG_HEADER_ONLY) + set(SOURCES + trimesh_sampling.cpp) +endif() + +add_executable(trimesh_sampling + ${SOURCES}) + +target_link_libraries( + trimesh_sampling + PUBLIC + vcglib + ) diff --git a/apps/sample/trimesh_select/CMakeLists.txt b/apps/sample/trimesh_select/CMakeLists.txt new file mode 100644 index 00000000..3fa8e8c3 --- /dev/null +++ b/apps/sample/trimesh_select/CMakeLists.txt @@ -0,0 +1,16 @@ +cmake_minimum_required(VERSION 3.13) +project(trimesh_select) + +if (VCG_HEADER_ONLY) + set(SOURCES + trimesh_select.cpp) +endif() + +add_executable(trimesh_select + ${SOURCES}) + +target_link_libraries( + trimesh_select + PUBLIC + vcglib + ) diff --git a/apps/sample/trimesh_smooth/CMakeLists.txt b/apps/sample/trimesh_smooth/CMakeLists.txt new file mode 100644 index 00000000..a3bbddcd --- /dev/null +++ b/apps/sample/trimesh_smooth/CMakeLists.txt @@ -0,0 +1,17 @@ +cmake_minimum_required(VERSION 3.13) +project(trimesh_smooth) + +if (VCG_HEADER_ONLY) + set(SOURCES + trimesh_smooth.cpp + ${VCG_INCLUDE_DIRS}/wrap/ply/plylib.cpp) +endif() + +add_executable(trimesh_smooth + ${SOURCES}) + +target_link_libraries( + trimesh_smooth + PUBLIC + vcglib + ) diff --git a/apps/sample/trimesh_split_vertex/CMakeLists.txt b/apps/sample/trimesh_split_vertex/CMakeLists.txt new file mode 100644 index 00000000..09a75511 --- /dev/null +++ b/apps/sample/trimesh_split_vertex/CMakeLists.txt @@ -0,0 +1,17 @@ +cmake_minimum_required(VERSION 3.13) +project(trimesh_split_vertex) + +if (VCG_HEADER_ONLY) + set(SOURCES + trimesh_split_vertex.cpp + ${VCG_INCLUDE_DIRS}/wrap/ply/plylib.cpp) +endif() + +add_executable(trimesh_split_vertex + ${SOURCES}) + +target_link_libraries( + trimesh_split_vertex + PUBLIC + vcglib + ) diff --git a/apps/sample/trimesh_texture/CMakeLists.txt b/apps/sample/trimesh_texture/CMakeLists.txt new file mode 100644 index 00000000..b4328dd7 --- /dev/null +++ b/apps/sample/trimesh_texture/CMakeLists.txt @@ -0,0 +1,31 @@ +cmake_minimum_required(VERSION 3.13) +project(trimesh_texture) + +find_package( + Qt5 + COMPONENTS OpenGL Svg) + +if (TARGET Qt5::OpenGL AND TARGET Qt5::Svg) + + if (VCG_HEADER_ONLY) + set(SOURCES + trimesh_texture.cpp + ${VCG_INCLUDE_DIRS}/wrap/ply/plylib.cpp + ${VCG_INCLUDE_DIRS}/wrap/qt/Outline2ToQImage.cpp + ${VCG_INCLUDE_DIRS}/wrap/qt/outline2_rasterizer.cpp) + endif() + + add_executable(trimesh_texture + ${SOURCES}) + + target_link_libraries( + trimesh_texture + PUBLIC + vcglib + Qt5::OpenGL + Qt5::Svg + ) +else() + message( + STATUS "VCG examples - Skipping trimesh_texture example") +endif() diff --git a/apps/sample/trimesh_texture_clean/CMakeLists.txt b/apps/sample/trimesh_texture_clean/CMakeLists.txt new file mode 100644 index 00000000..5d325ee8 --- /dev/null +++ b/apps/sample/trimesh_texture_clean/CMakeLists.txt @@ -0,0 +1,16 @@ +cmake_minimum_required(VERSION 3.13) +project(trimesh_texture_clean) + +if (VCG_HEADER_ONLY) + set(SOURCES + trimesh_texture_clean.cpp) +endif() + +add_executable(trimesh_texture_clean + ${SOURCES}) + +target_link_libraries( + trimesh_texture_clean + PUBLIC + vcglib + ) diff --git a/apps/sample/trimesh_topological_cut/CMakeLists.txt b/apps/sample/trimesh_topological_cut/CMakeLists.txt new file mode 100644 index 00000000..871b1236 --- /dev/null +++ b/apps/sample/trimesh_topological_cut/CMakeLists.txt @@ -0,0 +1,17 @@ +cmake_minimum_required(VERSION 3.13) +project(trimesh_topological_cut) + +if (VCG_HEADER_ONLY) + set(SOURCES + trimesh_topological_cut.cpp + ${VCG_INCLUDE_DIRS}/wrap/ply/plylib.cpp) +endif() + +add_executable(trimesh_topological_cut + ${SOURCES}) + +target_link_libraries( + trimesh_topological_cut + PUBLIC + vcglib + ) diff --git a/apps/sample/trimesh_topology/CMakeLists.txt b/apps/sample/trimesh_topology/CMakeLists.txt new file mode 100644 index 00000000..bb0b5471 --- /dev/null +++ b/apps/sample/trimesh_topology/CMakeLists.txt @@ -0,0 +1,16 @@ +cmake_minimum_required(VERSION 3.13) +project(trimesh_topology) + +if (VCG_HEADER_ONLY) + set(SOURCES + trimesh_topology.cpp) +endif() + +add_executable(trimesh_topology + ${SOURCES}) + +target_link_libraries( + trimesh_topology + PUBLIC + vcglib + ) diff --git a/apps/sample/trimesh_voronoi/CMakeLists.txt b/apps/sample/trimesh_voronoi/CMakeLists.txt new file mode 100644 index 00000000..9ce633cb --- /dev/null +++ b/apps/sample/trimesh_voronoi/CMakeLists.txt @@ -0,0 +1,17 @@ +cmake_minimum_required(VERSION 3.13) +project(trimesh_voronoi) + +if (VCG_HEADER_ONLY) + set(SOURCES + trimesh_voronoi.cpp + ${VCG_INCLUDE_DIRS}/wrap/ply/plylib.cpp) +endif() + +add_executable(trimesh_voronoi + ${SOURCES}) + +target_link_libraries( + trimesh_voronoi + PUBLIC + vcglib + ) diff --git a/apps/sample/trimesh_voronoiatlas/CMakeLists.txt b/apps/sample/trimesh_voronoiatlas/CMakeLists.txt new file mode 100644 index 00000000..3f639e58 --- /dev/null +++ b/apps/sample/trimesh_voronoiatlas/CMakeLists.txt @@ -0,0 +1,17 @@ +cmake_minimum_required(VERSION 3.13) +project(trimesh_voronoiatlas) + +if (VCG_HEADER_ONLY) + set(SOURCES + trimesh_voronoiatlas.cpp + ${VCG_INCLUDE_DIRS}/wrap/ply/plylib.cpp) +endif() + +add_executable(trimesh_voronoiatlas + ${SOURCES}) + +target_link_libraries( + trimesh_voronoiatlas + PUBLIC + vcglib + ) diff --git a/apps/sample/trimesh_voronoiclustering/CMakeLists.txt b/apps/sample/trimesh_voronoiclustering/CMakeLists.txt new file mode 100644 index 00000000..2e0bfc26 --- /dev/null +++ b/apps/sample/trimesh_voronoiclustering/CMakeLists.txt @@ -0,0 +1,17 @@ +cmake_minimum_required(VERSION 3.13) +project(trimesh_voronoiclustering) + +if (VCG_HEADER_ONLY) + set(SOURCES + trimesh_voronoiclustering.cpp + ${VCG_INCLUDE_DIRS}/wrap/ply/plylib.cpp) +endif() + +add_executable(trimesh_voronoiclustering + ${SOURCES}) + +target_link_libraries( + trimesh_voronoiclustering + PUBLIC + vcglib + ) diff --git a/apps/sample/trimesh_voronoisampling/CMakeLists.txt b/apps/sample/trimesh_voronoisampling/CMakeLists.txt new file mode 100644 index 00000000..df908eb5 --- /dev/null +++ b/apps/sample/trimesh_voronoisampling/CMakeLists.txt @@ -0,0 +1,17 @@ +cmake_minimum_required(VERSION 3.13) +project(trimesh_voronoisampling) + +if (VCG_HEADER_ONLY) + set(SOURCES + trimesh_voronoisampling.cpp + ${VCG_INCLUDE_DIRS}/wrap/ply/plylib.cpp) +endif() + +add_executable(trimesh_voronoisampling + ${SOURCES}) + +target_link_libraries( + trimesh_voronoisampling + PUBLIC + vcglib + ) diff --git a/apps/tridecimator/CMakeLists.txt b/apps/tridecimator/CMakeLists.txt index 7f337fcb..0cf6e0fe 100644 --- a/apps/tridecimator/CMakeLists.txt +++ b/apps/tridecimator/CMakeLists.txt @@ -1,2 +1,17 @@ +cmake_minimum_required(VERSION 3.13) project (tridecimator) -add_executable(tridecimator tridecimator.cpp ../../wrap/ply/plylib.cpp) + +if (VCG_HEADER_ONLY) + set(SOURCES + tridecimator.cpp + ${VCG_INCLUDE_DIRS}/wrap/ply/plylib.cpp) +endif() + +add_executable(tridecimator + ${SOURCES}) + +target_link_libraries( + tridecimator + PUBLIC + vcglib + )