Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gmsh
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Larry Price
gmsh
Commits
da6fa544
Commit
da6fa544
authored
9 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
make GMP optional + fix zipper
parent
79e2c740
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CMakeLists.txt
+24
-4
24 additions, 4 deletions
CMakeLists.txt
with
24 additions
and
4 deletions
CMakeLists.txt
+
24
−
4
View file @
da6fa544
...
...
@@ -49,6 +49,7 @@ opt(DINTEGRATION "Enable discrete integration (needed for levelsets)" ${DEFAULT}
opt
(
FLTK
"Enable FLTK graphical user interface (requires mesh/post)"
${
DEFAULT
}
)
opt
(
FOURIER_MODEL
"Enable Fourier geometrical models (experimental)"
OFF
)
opt
(
GMM
"Enable GMM linear solvers (simple alternative to PETSc)"
${
DEFAULT
}
)
opt
(
GMP
"Enable GMP for Kbipack (advanced)"
ON
)
opt
(
GRAPHICS
"Enable building graphics lib even without GUI (advanced)"
OFF
)
opt
(
KBIPACK
"Enable Kbipack (neeeded by homology solver)"
${
DEFAULT
}
)
opt
(
MATHEX
"Enable math expression parser (used by plugins and options)"
${
DEFAULT
}
)
...
...
@@ -93,6 +94,7 @@ opt(TETGEN_OLD "Enable older version of Tetgen" OFF)
opt
(
VORO3D
"Enable Voro3D (for hex meshing, experimental)"
${
DEFAULT
}
)
opt
(
WRAP_JAVA
"Enable generation of Java wrappers (experimental)"
OFF
)
opt
(
WRAP_PYTHON
"Enable generation of Python wrappers"
OFF
)
opt
(
ZIPPER
"Enable zip compression/decompression"
OFF
)
set
(
GMSH_MAJOR_VERSION 2
)
set
(
GMSH_MINOR_VERSION 10
)
...
...
@@ -700,8 +702,10 @@ if(ENABLE_KBIPACK)
set_config_option
(
HAVE_KBIPACK
"Kbipack"
)
add_subdirectory
(
contrib/kbipack
)
include_directories
(
contrib/kbipack
)
find_library
(
GMP_LIB gmp
)
find_path
(
GMP_INC
"gmp.h"
PATH_SUFFIXES src include
)
if
(
ENABLE_GMP
)
find_library
(
GMP_LIB gmp
)
find_path
(
GMP_INC
"gmp.h"
PATH_SUFFIXES src include
)
endif
(
ENABLE_GMP
)
if
(
GMP_LIB AND GMP_INC
)
set_config_option
(
HAVE_GMP
"GMP"
)
list
(
APPEND EXTERNAL_LIBRARIES
${
GMP_LIB
}
)
...
...
@@ -1159,9 +1163,25 @@ if(ENABLE_ACIS)
endif
(
ACIS_LIB
)
endif
(
ENABLE_ACIS
)
if
(
HAVE_
Z
LIB AND ENABLE_COMPRESSED_IO
)
if
(
HAVE_LIB
Z
AND ENABLE_COMPRESSED_IO
)
set_config_option
(
HAVE_COMPRESSED_IO
"CompressedIO"
)
endif
(
HAVE_ZLIB AND ENABLE_COMPRESSED_IO
)
endif
(
HAVE_LIBZ AND ENABLE_COMPRESSED_IO
)
if
(
ENABLE_ZIPPER
)
if
(
NOT HAVE_LIBZ
)
# necessary for non-GUI builds
find_package
(
ZLIB
)
if
(
ZLIB_FOUND
)
set_config_option
(
HAVE_LIBZ
"Zlib"
)
list
(
APPEND EXTERNAL_LIBRARIES
${
ZLIB_LIBRARIES
}
)
list
(
APPEND EXTERNAL_INCLUDES
${
ZLIB_INCLUDE_DIR
}
)
endif
(
ZLIB_FOUND
)
endif
(
NOT HAVE_LIBZ
)
if
(
HAVE_LIBZ
)
add_subdirectory
(
contrib/zipper
)
include_directories
(
contrib/zipper
)
set_config_option
(
HAVE_ZIPPER
"Zipper"
)
endif
(
HAVE_LIBZ
)
endif
(
ENABLE_ZIPPER
)
if
(
ENABLE_WRAP_PYTHON
)
find_package
(
SWIG
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment