Index: geogram/CMakeLists.txt
===================================================================
--- geogram.orig/CMakeLists.txt
+++ geogram/CMakeLists.txt
@@ -129,8 +129,6 @@ if(GEOGRAM_WITH_VORPALINE)
 add_subdirectory(src/lib/vorpalib)
 endif()
 
-add_subdirectory(src/lib/third_party)
-
 if(GEOGRAM_WITH_GRAPHICS)
 add_subdirectory(src/lib/geogram_gfx)
 endif()
Index: geogram/src/lib/geogram/CMakeLists.txt
===================================================================
--- geogram.orig/src/lib/geogram/CMakeLists.txt
+++ geogram/src/lib/geogram/CMakeLists.txt
@@ -13,8 +13,6 @@ ${PROJECT_SOURCE_DIR}/src/lib/geogram/ge
 )
 endif()
 
-add_subdirectory(third_party)
-
 aux_source_directories(SOURCES "Source Files"           .)
 aux_source_directories(SOURCES "Source Files\\basic"    basic)
 aux_source_directories(SOURCES "Source Files\\numerics" numerics)
@@ -45,12 +43,17 @@ set_source_files_properties(version.h PR
 
 include_directories(${PROJECT_BINARY_DIR}/src/lib)
 
-add_library(geogram ${SOURCES} $<TARGET_OBJECTS:geogram_third_party>)
+FILE(GLOB POISSON_RECON_SOURCES third_party/PoissonRecon/*.cpp)
+add_library(geogram
+  ${SOURCES}
+  third_party/xatlas/xatlas.cpp
+  ${POISSON_RECON_SOURCES})
 
 target_compile_features(geogram PUBLIC cxx_std_17)
 
 target_include_directories(geogram PRIVATE
-${PROJECT_SOURCE_DIR}/src/lib/geogram/third_party/amgcl
+    ${PROJECT_SOURCE_DIR}/src/lib/geogram/third_party/xatlas
+    ${PROJECT_SOURCE_DIR}/src/lib/geogram/third_party/PoissonRecon
 )
 
 if(GEOGRAM_WITH_GEOGRAMPLUS)
