|
@@ -5,19 +5,20 @@ message(STATUS "CMAKE_CXX_COMPILER: ${CMAKE_CXX_COMPILER}")
|
|
|
|
|
|
### conditionally compile certain modules depending on libraries found on the system
|
|
|
list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/../cmake)
|
|
|
-#find_package(CGAL QUIET COMPONENTS Core)
|
|
|
-find_package(MATLAB QUIET)
|
|
|
-find_package(MOSEK)
|
|
|
|
|
|
### libIGL options: choose between header only and compiled static library
|
|
|
option(LIBIGL_USE_STATIC_LIBRARY "Use LibIGL as static library" ON)
|
|
|
option(LIBIGL_WITH_EMBREE "Use Embree" ON)
|
|
|
|
|
|
### libIGL options: choose your dependencies (by default everything is OFF, in this example we need the viewer)
|
|
|
-option(LIBIGL_WITH_CGAL "Use CGAL" ON)
|
|
|
-option(LIBIGL_WITH_CORK "Use CORK" OFF)
|
|
|
-option(LIBIGL_WITH_MATLAB "Use Matlab" "${MATLAB_FOUND}")
|
|
|
-option(LIBIGL_WITH_MOSEK "Use MOSEK" "${MOSEK_FOUND}")
|
|
|
+option(LIBIGL_WITH_CGAL "Use CGAL" ON)
|
|
|
+option(LIBIGL_WITH_CORK "Use CORK" OFF)
|
|
|
+option(LIBIGL_WITH_MATLAB "Use Matlab" OFF)
|
|
|
+option(LIBIGL_WITH_MOSEK "Use MOSEK" OFF)
|
|
|
+option(LIBIGL_WITH_OPENGL "Use OpenGL" ON)
|
|
|
+option(LIBIGL_WITH_OPENGL_GLFW "Use GLFW" ON)
|
|
|
+option(LIBIGL_WITH_OPENGL_GLFW_IMGUI "Use ImGui" ON)
|
|
|
+option(LIBIGL_WITH_VIEWER "Use OpenGL viewer" ON)
|
|
|
### End
|
|
|
|
|
|
|
|
@@ -46,7 +47,7 @@ option(TUTORIALS_CHAPTER6 "Compile chapter 6" ON)
|
|
|
option(TUTORIALS_CHAPTER7 "Compile chapter 7" ON)
|
|
|
|
|
|
# Store location of tutorial/shared directory
|
|
|
-set(TUTORIAL_SHARED_PATH ${CMAKE_CURRENT_SOURCE_DIR}/shared CACHE PATH "location of shared tutorial resources")
|
|
|
+set(TUTORIAL_SHARED_PATH ${IGL_TUTORIAL_DATA} CACHE PATH "location of shared tutorial resources")
|
|
|
add_library(tutorials INTERFACE)
|
|
|
target_compile_definitions(tutorials INTERFACE "-DTUTORIAL_SHARED_PATH=\"${TUTORIAL_SHARED_PATH}\"")
|
|
|
target_include_directories(tutorials INTERFACE ${CMAKE_CURRENT_SOURCE_DIR})
|