Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
OpenVolumeMesh
OpenVolumeMesh
Commits
5410ca5b
Commit
5410ca5b
authored
Sep 02, 2019
by
Martin Heistermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmake: enable_testing only if we are main project, include unittests subdir only if option is set
parent
160f6d48
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
+2
-4
CMakeLists.txt
CMakeLists.txt
+2
-2
src/CMakeLists.txt
src/CMakeLists.txt
+0
-2
No files found.
CMakeLists.txt
View file @
5410ca5b
...
...
@@ -17,7 +17,7 @@ else()
endif
()
set
(
OVM_ENABLE_APPLICATIONS
${
OVM_STANDALONE_BUILD
}
CACHE BOOL
"Build OpenVolumeMesh applications in 'all' target"
)
set
(
OVM_ENABLE_UNITTESTS
${
OVM_STANDALONE_BUILD
}
CACHE BOOL
"Build OpenVolumeMesh unit tests
in 'all' target
"
)
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"
)
...
...
@@ -29,6 +29,7 @@ if (OVM_STANDALONE_BUILD)
set
(
CMAKE_LIBRARY_OUTPUT_DIRECTORY
"
${
CMAKE_CURRENT_BINARY_DIR
}
/Build/lib"
)
set
(
CMAKE_ARCHIVE_OUTPUT_DIRECTORY
"
${
CMAKE_CURRENT_BINARY_DIR
}
/Build/lib"
)
set
(
OVM_TARGET_PREFIX
""
)
enable_testing
()
else
()
# OVM_TARGET_PREFIX is prepended to targets with generic names,
# i.e., "doc", "unittests"
...
...
@@ -37,7 +38,6 @@ endif()
set
(
CMAKE_DEBUG_POSTFIX
"d"
)
enable_testing
()
add_subdirectory
(
src
)
if
(
OVM_ENABLE_EXAMPLES
)
...
...
src/CMakeLists.txt
View file @
5410ca5b
...
...
@@ -162,6 +162,4 @@ endif()
if
(
OVM_ENABLE_UNITTESTS
)
add_subdirectory
(
Unittests
)
else
()
add_subdirectory
(
Unittests EXCLUDE_FROM_ALL
)
endif
()
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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