Update cmake.
This commit is contained in:
@@ -33,6 +33,7 @@ external/mpfr
|
||||
external/boost
|
||||
external/.cache
|
||||
external/build
|
||||
external/pybind11
|
||||
.DS_Store
|
||||
libigl.zip
|
||||
*tags
|
||||
|
||||
@@ -17,7 +17,7 @@ endfunction()
|
||||
## CGAL
|
||||
function(igl_download_cgal)
|
||||
igl_download_project(cgal
|
||||
GIT_REPOSITORY https://github.com/libigl/cgal.git
|
||||
GIT_REPOSITORY https://github.com/CGAL/cgal.git
|
||||
GIT_TAG f7c3c8212b56c0d6dae63787efc99093f4383415
|
||||
)
|
||||
endfunction()
|
||||
|
||||
@@ -23,10 +23,6 @@ if(UNIX)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
## include pybind
|
||||
set(PYBIND11_DIR ${PROJECT_SOURCE_DIR}/../external/pybind11 CACHE PATH "Path to pybind11")
|
||||
add_subdirectory(${PYBIND11_DIR} pybind11)
|
||||
|
||||
## include libigl
|
||||
option(LIBIGL_USE_STATIC_LIBRARY "Use LibIGL as static library" OFF)
|
||||
option(LIBIGL_WITH_OPENGL "Use viewer" ON)
|
||||
@@ -52,6 +48,10 @@ if(NOT TARGET igl::core)
|
||||
include(libigl)
|
||||
endif()
|
||||
|
||||
## include pybind
|
||||
set(PYBIND11_DIR ${PROJECT_SOURCE_DIR}/../external/pybind11 CACHE PATH "Path to pybind11")
|
||||
add_subdirectory(${PYBIND11_DIR} pybind11)
|
||||
|
||||
## Prepare the python library
|
||||
pybind11_add_module(pyigl
|
||||
python_shared.cpp
|
||||
|
||||
Reference in New Issue
Block a user