Skip to content
Snippets Groups Projects
Commit fa44158a authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

all contrib/ stuff should be optional -> defined HAVE_BFGS ; the Lloyd code...

all contrib/ stuff should be optional -> defined HAVE_BFGS ; the Lloyd code must still be #ifdef'ed accordingly


parent 7b52a61e
No related branches found
No related tags found
No related merge requests found
...@@ -16,7 +16,10 @@ endif(DEFINED CMAKE_BUILD_TYPE) ...@@ -16,7 +16,10 @@ endif(DEFINED CMAKE_BUILD_TYPE)
project(gmsh CXX C) project(gmsh CXX C)
option(ENABLE_ACIS "Enable ACIS geometrical models" ON)
option(ENABLE_ANN "Enable ANN to compute Approximate Nearest Neighbors" ON) option(ENABLE_ANN "Enable ANN to compute Approximate Nearest Neighbors" ON)
option(ENABLE_BAMG "Enable Bamg mesh generator" ON)
option(ENABLE_BFGS "Enable BFGS" ON)
option(ENABLE_BLAS_LAPACK "Use BLAS/Lapack for basic linear algebra" ON) option(ENABLE_BLAS_LAPACK "Use BLAS/Lapack for basic linear algebra" ON)
option(ENABLE_CGNS "Enable CGNS mesh export" OFF) option(ENABLE_CGNS "Enable CGNS mesh export" OFF)
option(ENABLE_CHACO "Enable Chaco mesh partitioner" ON) option(ENABLE_CHACO "Enable Chaco mesh partitioner" ON)
...@@ -38,14 +41,12 @@ option(ENABLE_MPI "Enable MPI parallelization" OFF) ...@@ -38,14 +41,12 @@ option(ENABLE_MPI "Enable MPI parallelization" OFF)
option(ENABLE_MSVC_STATIC_RUNTIME "Use static Visual C++ runtime" OFF) option(ENABLE_MSVC_STATIC_RUNTIME "Use static Visual C++ runtime" OFF)
option(ENABLE_NATIVE_FILE_CHOOSER "Enable native file chooser in GUI" ON) option(ENABLE_NATIVE_FILE_CHOOSER "Enable native file chooser in GUI" ON)
option(ENABLE_NETGEN "Enable Netgen mesh generator" ON) option(ENABLE_NETGEN "Enable Netgen mesh generator" ON)
option(ENABLE_BAMG "Enable Bamg mesh generator" ON)
option(ENABLE_OCC "Enable Open CASCADE geometrical models" ON) option(ENABLE_OCC "Enable Open CASCADE geometrical models" ON)
option(ENABLE_ACIS "Enable ACIS geometrical models" ON)
option(ENABLE_OSMESA "Use OSMesa for offscreen rendering" OFF) option(ENABLE_OSMESA "Use OSMesa for offscreen rendering" OFF)
option(ENABLE_PARSER "Build the GEO file parser" ON) option(ENABLE_PARSER "Build the GEO file parser" ON)
option(ENABLE_PETSC "Enable PETSc linear algebra solvers" OFF) option(ENABLE_PETSC "Enable PETSc linear algebra solvers" OFF)
option(ENABLE_POST "Build the post-processing module" ON)
option(ENABLE_PLUGINS "Build the post-processing plugins" ON) option(ENABLE_PLUGINS "Build the post-processing plugins" ON)
option(ENABLE_POST "Build the post-processing module" ON)
option(ENABLE_QT "Build QT GUI" OFF) option(ENABLE_QT "Build QT GUI" OFF)
option(ENABLE_READLINE "Enable Readline in Lua prompt" ON) option(ENABLE_READLINE "Enable Readline in Lua prompt" ON)
option(ENABLE_SLEPC "Enable SLEPc eigensolvers" ON) option(ENABLE_SLEPC "Enable SLEPc eigensolvers" ON)
...@@ -439,8 +440,11 @@ if(ENABLE_CHACO) ...@@ -439,8 +440,11 @@ if(ENABLE_CHACO)
set_config_option(HAVE_CHACO "Chaco") set_config_option(HAVE_CHACO "Chaco")
endif(ENABLE_CHACO) endif(ENABLE_CHACO)
add_subdirectory(contrib/lbfgs) if(ENABLE_BFGS)
include_directories(contrib/lbfgs) add_subdirectory(contrib/lbfgs)
include_directories(contrib/lbfgs)
set_config_option(HAVE_BFGS "Bfgs")
endif(ENABLE_BFGS)
if(ENABLE_DINTEGRATION) if(ENABLE_DINTEGRATION)
add_subdirectory(contrib/DiscreteIntegration) add_subdirectory(contrib/DiscreteIntegration)
......
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
#cmakedefine HAVE_ACIS #cmakedefine HAVE_ACIS
#cmakedefine HAVE_ANN #cmakedefine HAVE_ANN
#cmakedefine HAVE_BAMG #cmakedefine HAVE_BAMG
#cmakedefine HAVE_BFGS
#cmakedefine HAVE_BLAS #cmakedefine HAVE_BLAS
#cmakedefine HAVE_CHACO #cmakedefine HAVE_CHACO
#cmakedefine HAVE_DLOPEN #cmakedefine HAVE_DLOPEN
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment