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
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Gmsh
Gmsh
Commits
da6fa544
Commit
da6fa544
authored
Sep 10, 2015
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
make GMP optional + fix zipper
parent
79e2c740
No related branches found
No related tags found
No related merge requests found
Changes
1
Show 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}
...
@@ -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
(
FLTK
"Enable FLTK graphical user interface (requires mesh/post)"
${
DEFAULT
}
)
opt
(
FOURIER_MODEL
"Enable Fourier geometrical models (experimental)"
OFF
)
opt
(
FOURIER_MODEL
"Enable Fourier geometrical models (experimental)"
OFF
)
opt
(
GMM
"Enable GMM linear solvers (simple alternative to PETSc)"
${
DEFAULT
}
)
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
(
GRAPHICS
"Enable building graphics lib even without GUI (advanced)"
OFF
)
opt
(
KBIPACK
"Enable Kbipack (neeeded by homology solver)"
${
DEFAULT
}
)
opt
(
KBIPACK
"Enable Kbipack (neeeded by homology solver)"
${
DEFAULT
}
)
opt
(
MATHEX
"Enable math expression parser (used by plugins and options)"
${
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)
...
@@ -93,6 +94,7 @@ opt(TETGEN_OLD "Enable older version of Tetgen" OFF)
opt
(
VORO3D
"Enable Voro3D (for hex meshing, experimental)"
${
DEFAULT
}
)
opt
(
VORO3D
"Enable Voro3D (for hex meshing, experimental)"
${
DEFAULT
}
)
opt
(
WRAP_JAVA
"Enable generation of Java wrappers (experimental)"
OFF
)
opt
(
WRAP_JAVA
"Enable generation of Java wrappers (experimental)"
OFF
)
opt
(
WRAP_PYTHON
"Enable generation of Python wrappers"
OFF
)
opt
(
WRAP_PYTHON
"Enable generation of Python wrappers"
OFF
)
opt
(
ZIPPER
"Enable zip compression/decompression"
OFF
)
set
(
GMSH_MAJOR_VERSION 2
)
set
(
GMSH_MAJOR_VERSION 2
)
set
(
GMSH_MINOR_VERSION 10
)
set
(
GMSH_MINOR_VERSION 10
)
...
@@ -700,8 +702,10 @@ if(ENABLE_KBIPACK)
...
@@ -700,8 +702,10 @@ if(ENABLE_KBIPACK)
set_config_option
(
HAVE_KBIPACK
"Kbipack"
)
set_config_option
(
HAVE_KBIPACK
"Kbipack"
)
add_subdirectory
(
contrib/kbipack
)
add_subdirectory
(
contrib/kbipack
)
include_directories
(
contrib/kbipack
)
include_directories
(
contrib/kbipack
)
if
(
ENABLE_GMP
)
find_library
(
GMP_LIB gmp
)
find_library
(
GMP_LIB gmp
)
find_path
(
GMP_INC
"gmp.h"
PATH_SUFFIXES src include
)
find_path
(
GMP_INC
"gmp.h"
PATH_SUFFIXES src include
)
endif
(
ENABLE_GMP
)
if
(
GMP_LIB AND GMP_INC
)
if
(
GMP_LIB AND GMP_INC
)
set_config_option
(
HAVE_GMP
"GMP"
)
set_config_option
(
HAVE_GMP
"GMP"
)
list
(
APPEND EXTERNAL_LIBRARIES
${
GMP_LIB
}
)
list
(
APPEND EXTERNAL_LIBRARIES
${
GMP_LIB
}
)
...
@@ -1159,9 +1163,25 @@ if(ENABLE_ACIS)
...
@@ -1159,9 +1163,25 @@ if(ENABLE_ACIS)
endif
(
ACIS_LIB
)
endif
(
ACIS_LIB
)
endif
(
ENABLE_ACIS
)
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"
)
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
)
if
(
ENABLE_WRAP_PYTHON
)
find_package
(
SWIG
)
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