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
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
gmsh
gmsh
Commits
7a819d72
Commit
7a819d72
authored
12 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
I don't think LIB_ONLY is necessary: use "make install/fast"
parent
0186506f
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CMakeLists.txt
+14
-19
14 additions, 19 deletions
CMakeLists.txt
with
14 additions
and
19 deletions
CMakeLists.txt
+
14
−
19
View file @
7a819d72
...
...
@@ -70,7 +70,6 @@ option(ENABLE_TETGEN_OLD "Use old version of Tetgen" OFF)
option
(
ENABLE_VORO3D
"Enable Voro3D"
${
DEFAULT
}
)
option
(
ENABLE_WRAP_JAVA
"Build Java wrappers"
OFF
)
option
(
ENABLE_WRAP_PYTHON
"Build Python wrappers"
OFF
)
option
(
LIB_ONLY
"Build only the library (gmsh executable is not created if OFF)"
OFF
)
set
(
GMSH_MAJOR_VERSION 2
)
set
(
GMSH_MINOR_VERSION 7
)
...
...
@@ -1077,21 +1076,19 @@ if(ENABLE_BUILD_SHARED OR ENABLE_WRAP_PYTHON OR ENABLE_WRAP_JAVA)
endif
(
ENABLE_BUILD_SHARED OR ENABLE_WRAP_PYTHON OR ENABLE_WRAP_JAVA
)
# binary targets
if
(
NOT LIB_ONLY
)
if
(
HAVE_FLTK
)
add_executable
(
gmsh WIN32 Fltk/Main.cpp
${
GMSH_SRC
}
)
add_executable
(
gmsh_dynamic EXCLUDE_FROM_ALL Fltk/Main.cpp
)
target_link_libraries
(
gmsh_dynamic shared
)
elseif
(
HAVE_QT
)
qt4_wrap_cpp
(
GMSH_MOC_SRC
${
GMSH_MOC_HDR
}
)
add_executable
(
gmsh WIN32 Qt/Main.cpp
${
GMSH_SRC
}
${
GMSH_MOC_SRC
}
)
else
(
HAVE_FLTK
)
add_executable
(
gmsh Common/Main.cpp
${
GMSH_SRC
}
)
add_executable
(
gmsh_dynamic EXCLUDE_FROM_ALL Common/Main.cpp
)
target_link_libraries
(
gmsh_dynamic shared
)
endif
(
HAVE_FLTK
)
target_link_libraries
(
gmsh
${
LINK_LIBRARIES
}
)
endif
(
NOT LIB_ONLY
)
if
(
HAVE_FLTK
)
add_executable
(
gmsh WIN32 Fltk/Main.cpp
${
GMSH_SRC
}
)
add_executable
(
gmsh_dynamic EXCLUDE_FROM_ALL Fltk/Main.cpp
)
target_link_libraries
(
gmsh_dynamic shared
)
elseif
(
HAVE_QT
)
qt4_wrap_cpp
(
GMSH_MOC_SRC
${
GMSH_MOC_HDR
}
)
add_executable
(
gmsh WIN32 Qt/Main.cpp
${
GMSH_SRC
}
${
GMSH_MOC_SRC
}
)
else
(
HAVE_FLTK
)
add_executable
(
gmsh Common/Main.cpp
${
GMSH_SRC
}
)
add_executable
(
gmsh_dynamic EXCLUDE_FROM_ALL Common/Main.cpp
)
target_link_libraries
(
gmsh_dynamic shared
)
endif
(
HAVE_FLTK
)
target_link_libraries
(
gmsh
${
LINK_LIBRARIES
}
)
# increase stack to 16Mb on Windows to avoid overflows in recursive
# tet classification for large 3D Delaunay grids + force static
...
...
@@ -1194,9 +1191,7 @@ endif(WIN32 OR CYGWIN)
# mark targets as optional so we can install them separately if needed
# (e.g. "make lib" or "make shared" followed by "make install/fast")
if
(
NOT LIB_ONLY
)
install
(
TARGETS gmsh DESTINATION
${
GMSH_BIN
}
OPTIONAL
)
endif
(
NOT LIB_ONLY
)
install
(
TARGETS gmsh DESTINATION
${
GMSH_BIN
}
OPTIONAL
)
if
(
ENABLE_BUILD_LIB
)
install
(
TARGETS lib DESTINATION lib OPTIONAL
)
endif
(
ENABLE_BUILD_LIB
)
...
...
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