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
69ea516b
Commit
69ea516b
authored
Sep 09, 2019
by
Martin Heistermann
Browse files
cmake: only find_package(OVM) if the target does not exist
parent
2594cff1
Changes
2
Hide whitespace changes
Inline
Side-by-side
examples/CMakeLists.txt
View file @
69ea516b
...
...
@@ -2,7 +2,9 @@ cmake_minimum_required(VERSION 3.12 FATAL_ERROR)
cmake_policy
(
VERSION 3.12.0
)
project
(
OpenVolumeMeshExamples
)
find_package
(
OpenVolumeMesh REQUIRED
)
if
(
NOT TARGET OpenVolumeMesh::OpenVolumeMesh
)
find_package
(
OpenVolumeMesh REQUIRED
)
endif
()
# Add target for first example
add_executable
(
simple_mesh simple_mesh/simple_mesh.cc
)
...
...
src/Unittests/CMakeLists.txt
View file @
69ea516b
...
...
@@ -7,7 +7,9 @@ SET(SOURCE_FILES
unittests_iterators.cc
unittests_properties.cc
)
find_package
(
OpenVolumeMesh REQUIRED
)
if
(
NOT TARGET OpenVolumeMesh::OpenVolumeMesh
)
find_package
(
OpenVolumeMesh REQUIRED
)
endif
()
set
(
TARGET_NAME
"
${
OVM_TARGET_PREFIX
}
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