Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenVolumeMesh
OpenVolumeMesh
Commits
62b563c4
Commit
62b563c4
authored
Sep 06, 2019
by
Heng Liu
Committed by
Martin Heistermann
Sep 09, 2019
Browse files
do not add optional targets if we are a subproject
parent
1f36138b
Changes
2
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
62b563c4
...
...
@@ -16,10 +16,10 @@ else()
set
(
OVM_STANDALONE_BUILD FALSE
)
endif
()
set
(
OVM_ENABLE_APPLICATIONS
${
OVM_STANDALONE_BUILD
}
CACHE BOOL
"Build OpenVolumeMesh applications
in 'all' target
"
)
set
(
OVM_ENABLE_APPLICATIONS
${
OVM_STANDALONE_BUILD
}
CACHE BOOL
"Build OpenVolumeMesh applications"
)
set
(
OVM_ENABLE_UNITTESTS
${
OVM_STANDALONE_BUILD
}
CACHE BOOL
"Build OpenVolumeMesh unit tests"
)
set
(
OVM_ENABLE_EXAMPLES
${
OVM_STANDALONE_BUILD
}
CACHE BOOL
"Build OpenVolumeMesh examples
in 'all' target
"
)
set
(
OVM_BUILD_DOCUMENTATION
${
OVM_STANDALONE_BUILD
}
CACHE BOOL
"Build OpenVolumeMesh documentation
in 'all' target
"
)
set
(
OVM_ENABLE_EXAMPLES
${
OVM_STANDALONE_BUILD
}
CACHE BOOL
"Build OpenVolumeMesh examples"
)
set
(
OVM_BUILD_DOCUMENTATION
${
OVM_STANDALONE_BUILD
}
CACHE BOOL
"Build OpenVolumeMesh documentation"
)
set
(
OVM_CXX_VERSION 14 CACHE STRING
"C++ version to use"
)
set_property
(
CACHE OVM_CXX_VERSION PROPERTY STRINGS 14 17 20
)
...
...
@@ -42,11 +42,11 @@ add_subdirectory (src)
if
(
OVM_ENABLE_EXAMPLES
)
add_subdirectory
(
examples
)
else
()
add_subdirectory
(
examples EXCLUDE_FROM_ALL
)
endif
()
add_subdirectory
(
documentation
)
if
(
OVM_BUILD_DOCUMENTATION
)
add_subdirectory
(
documentation
)
endif
()
#export(PACKAGE OpenVolumeMesh)
...
...
src/CMakeLists.txt
View file @
62b563c4
...
...
@@ -155,8 +155,6 @@ export(PACKAGE OpenVolumeMesh)
if
(
OVM_ENABLE_APPLICATIONS
)
add_subdirectory
(
FileConverter
)
else
()
add_subdirectory
(
FileConverter EXCLUDE_FROM_ALL
)
endif
()
if
(
OVM_ENABLE_UNITTESTS
)
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment