Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tnl-dev
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
TNL
tnl-dev
Commits
b36d0a5c
There was an error fetching the commit references. Please try again later.
Commit
b36d0a5c
authored
5 years ago
by
Jakub Klinkovský
Browse files
Options
Downloads
Patches
Plain Diff
CMakeLists.txt: fixed WITH_EXAMPLES and WITH_DOC options
parent
faf4328f
No related branches found
No related tags found
1 merge request
!47
Linear solvers
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CMakeLists.txt
+3
-3
3 additions, 3 deletions
CMakeLists.txt
build
+2
-1
2 additions, 1 deletion
build
with
5 additions
and
4 deletions
CMakeLists.txt
+
3
−
3
View file @
b36d0a5c
...
...
@@ -25,11 +25,11 @@ option(WITH_GMP "Build with GMP support" OFF)
option
(
WITH_TESTS
"Build tests"
ON
)
option
(
WITH_PROFILING
"Enable code profiling compiler flags"
OFF
)
option
(
WITH_COVERAGE
"Enable code coverage reports from unit tests"
OFF
)
option
(
WITH_EXAMPLES
"Compile the '
e
xamples' directory"
ON
)
option
(
WITH_EXAMPLES
"Compile the '
src/E
xamples' directory"
ON
)
option
(
WITH_TOOLS
"Compile the 'src/Tools' directory"
ON
)
option
(
WITH_BENCHMARKS
"Compile the 'src/Benchmarks' directory"
ON
)
option
(
WITH_PYTHON
"Compile the Python bindings"
ON
)
option
(
WITH_DOC
"
Generat
e documentation"
ON
)
option
(
WITH_DOC
"
Build examples included in th
e documentation"
ON
)
# install paths relative to the cmake's prefix
set
(
TNL_TARGET_INCLUDE_DIRECTORY
"include/TNL"
)
...
...
@@ -307,7 +307,7 @@ add_subdirectory( src )
add_subdirectory
(
share
)
# Add subdirectories for examples included in the documentation
if
(
${
WITH_DOC
}
OR
${
WITH_EXAMPLES
}
)
if
(
${
WITH_DOC
}
)
set
(
TNL_DOCUMENTATION_OUTPUT_SNIPPETS_PATH
"
${
CMAKE_SOURCE_DIR
}
/Documentation/output_snippets"
)
file
(
MAKE_DIRECTORY
${
TNL_DOCUMENTATION_OUTPUT_SNIPPETS_PATH
}
)
add_subdirectory
(
Documentation/Examples
)
...
...
This diff is collapsed.
Click to expand it.
build
+
2
−
1
View file @
b36d0a5c
...
...
@@ -87,10 +87,11 @@ if [[ ${HELP} == "yes" ]]; then
echo
"
--with-profiling=yes/no Enables code profiling compiler falgs.
'
no
'
by default.
"
echo
"
--with-coverage=yes/no Enables code coverage reports for unit tests.
'
no
'
by default (lcov is required).
"
echo
"
--with-doc=yes/no Build documentation.
'
yes
'
by default.
"
echo
"
--with-examples=yes/no Compile the
'
e
xamples
'
directory.
'
yes
'
by default.
"
echo
"
--with-examples=yes/no Compile the
'
src/E
xamples
'
directory.
'
yes
'
by default.
"
echo
"
--with-tools=yes/no Compile the
'
src/Tools
'
directory.
'
yes
'
by default.
"
echo
"
--with-python=yes/no Compile the Python bindings.
'
yes
'
by default.
"
echo
"
--with-benchmarks=yes/no Compile the
'
src/Benchmarks
'
directory.
'
yes
'
by default.
"
echo
"
--with-doc=yes/no Generate the documentation.
'
yes
'
by default.
"
echo
"
--cmake=CMAKE Path to cmake.
'
cmake
'
by default.
"
echo
"
--verbose It enables verbose build.
"
echo
"
--root-dir=PATH Path to the TNL source code root dir.
"
...
...
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