Skip to content

Commit f08c6f1

Browse files
committed
just import tetgen/triangle
1 parent abf24d0 commit f08c6f1

2 files changed

Lines changed: 554 additions & 549 deletions

File tree

CMakeLists.txt

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ FetchContent_MakeAvailable(nanobind)
4040

4141
# Download and set up libigl
4242
option(LIBIGL_COPYLEFT_CORE "Build target igl_copyleft::core" ON)
43-
option(LIBIGL_COPYLEFT_CGAL "Build target igl_copyleft::cgal" ON)
44-
option(LIBIGL_EMBREE "Build target igl::embree" ON)
43+
option(LIBIGL_COPYLEFT_CGAL "Build target igl_copyleft::cgal" OFF)
44+
option(LIBIGL_EMBREE "Build target igl::embree" OFF)
4545
option(LIBIGL_COPYLEFT_TETGEN "Build target igl_copyleft::tetgen" ON)
4646
option(LIBIGL_RESTRICTED_TRIANGLE "Build target igl_restricted::triangle" ON)
4747
FetchContent_Declare(
@@ -95,9 +95,13 @@ function(pyigl_include prefix name)
9595
endif()
9696
file(GLOB sources "${CMAKE_CURRENT_SOURCE_DIR}/src/${subpath}/*.cpp")
9797

98-
## Just compile a single file
99-
#list(GET sources 0 sources)
100-
#list(APPEND sources "${CMAKE_CURRENT_SOURCE_DIR}/src/${subpath}/module.cpp")
98+
# Just compile a single file
99+
list(FILTER sources EXCLUDE REGEX ".*/module\\.cpp$")
100+
list(GET sources 0 sources)
101+
list(APPEND sources "${CMAKE_CURRENT_SOURCE_DIR}/src/${subpath}/module.cpp")
102+
103+
message(STATUS "$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$")
104+
message(STATUS "${prefix} ${name} sources: ${sources}")
101105

102106
set(BINDING_SOURCES ${sources})
103107
list(FILTER BINDING_SOURCES EXCLUDE REGEX ".*/module\\.cpp$")

0 commit comments

Comments
 (0)