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
4badb039
There was an error fetching the commit references. Please try again later.
Commit
4badb039
authored
6 years ago
by
Jakub Klinkovský
Browse files
Options
Downloads
Patches
Plain Diff
Added missing with-flags to CMakeLists.txt
parent
5a238231
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CMakeLists.txt
+4
-0
4 additions, 0 deletions
CMakeLists.txt
build
+3
-2
3 additions, 2 deletions
build
src/CMakeLists.txt
+6
-6
6 additions, 6 deletions
src/CMakeLists.txt
with
13 additions
and
8 deletions
CMakeLists.txt
+
4
−
0
View file @
4badb039
...
...
@@ -28,6 +28,8 @@ option(WITH_GMP "Build with GMP support" OFF)
option
(
WITH_TESTS
"Build tests"
ON
)
option
(
WITH_COVERAGE
"Enable code coverage reports from unit tests"
OFF
)
option
(
WITH_EXAMPLES
"Compile the 'examples' directory"
ON
)
option
(
WITH_TOOLS
"Compile the 'src/Tools' directory"
ON
)
option
(
WITH_PYTHON
"Compile the Python bindings"
ON
)
option
(
WITH_TEMPLATES_INSTANTIATION
"Enable explicit template instantiation"
OFF
)
# install paths relative to the cmake's prefix
...
...
@@ -437,6 +439,8 @@ message( " WITH_GMP=${WITH_GMP}" )
message
(
" WITH_TESTS=
${
WITH_TESTS
}
"
)
message
(
" WITH_COVERAGE=
${
WITH_COVERAGE
}
"
)
message
(
" WITH_EXAMPLES=
${
WITH_EXAMPLES
}
"
)
message
(
" WITH_TOOLS=
${
WITH_TOOLS
}
"
)
message
(
" WITH_PYTHON=
${
WITH_PYTHON
}
"
)
message
(
" WITH_TEMPLATES_INSTANTIATION=
${
WITH_TEMPLATES_INSTANTIATION
}
"
)
# Print compiler options
message
(
"-- Compiler options:"
)
...
...
This diff is collapsed.
Click to expand it.
build
+
3
−
2
View file @
4badb039
...
...
@@ -22,6 +22,7 @@ WITH_GMP="no"
WITH_TESTS
=
"
yes
"
WITH_COVERAGE
=
"
no
"
WITH_EXAMPLES
=
"
yes
"
WITH_PYTHON
=
"
yes
"
WITH_TOOLS
=
"
yes
"
WITH_TEMPLATE_INSTANTIATION
=
"
no
"
...
...
@@ -94,8 +95,8 @@ then
echo
"
--with-tests=yes/no Enables unit tests.
'
yes
'
by default.
"
echo
"
--with-coverage=yes/no Enables code coverage reports for unit tests.
'
no
'
by default (lcov is required).
"
echo
"
--with-examples=yes/no Compile the
'
examples
'
directory.
'
yes
'
by default.
"
echo
"
--with-tools=yes/no Compile the
'
t
ools
'
directory.
'
yes
'
by default.
"
echo
"
--with-python=yes/no Compile
with
the
p
ython bindings.
'
yes
'
by default.
"
echo
"
--with-tools=yes/no Compile the
'
src/T
ools
'
directory.
'
yes
'
by default.
"
echo
"
--with-python=yes/no Compile the
P
ython bindings.
'
yes
'
by default.
"
echo
"
--with-templates-instantiation=yes/no Precompiles some TNL templates during the build.
'
no
'
by default.
"
echo
"
--cmake=CMAKE Path to cmake.
'
cmake
'
by default.
"
echo
"
--verbose It enables verbose build.
"
...
...
This diff is collapsed.
Click to expand it.
src/CMakeLists.txt
+
6
−
6
View file @
4badb039
if
(
WITH_TOOLS
STREQUAL
"yes"
)
if
(
${
WITH_TOOLS
}
)
ADD_SUBDIRECTORY
(
Python
)
endif
(
WITH_TOOLS STREQUAL
"yes"
)
endif
()
ADD_SUBDIRECTORY
(
TNL
)
if
(
WITH_TOOLS
STREQUAL
"yes"
)
if
(
${
WITH_TOOLS
}
)
ADD_SUBDIRECTORY
(
Tools
)
endif
(
WITH_TOOLS STREQUAL
"yes"
)
endif
()
if
(
WITH_TESTS
STREQUAL
"yes"
)
if
(
${
WITH_TESTS
}
)
ADD_SUBDIRECTORY
(
UnitTests
)
endif
(
WITH_TESTS STREQUAL
"yes"
)
endif
()
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