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
OpenFlipper-Free
OpenFlipper-Free
Commits
38dbf93d
Commit
38dbf93d
authored
Nov 05, 2015
by
Isaak Lim
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added mesh integration finder
parent
f3460f9e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
1 deletion
+32
-1
CMakeLists.txt
CMakeLists.txt
+3
-1
cmake/FindMeshIntegration.cmake
cmake/FindMeshIntegration.cmake
+29
-0
No files found.
CMakeLists.txt
View file @
38dbf93d
...
...
@@ -218,7 +218,9 @@ add_subdirectory (OpenFlipper/Documentation/UserQtHelpTarget)
# PolyLine extension special case
# ========================================================================
if
(
EXISTS
${
CMAKE_SOURCE_DIR
}
/libs/MeshIntegration
)
find_package
(
MeshIntegration
)
if
(
MESH_INTEGRATION_FOUND
)
add_definitions
(
-DEXTENDED_POLY_LINE
)
endif
()
...
...
cmake/FindMeshIntegration.cmake
0 → 100644
View file @
38dbf93d
# Try to find MeshIntegration
# Once done this will define
# MESH_INTEGRATION_FOUND - system has MeshIntegration
# MESH_INTEGRATION_INCLUDE_DIRS - the MeshIntegration include directories
IF
(
MESH_INTEGRATION_INCLUDE_DIRS
)
# Already in cache, be silent
SET
(
MESH_INTEGRATION_FIND_QUIETLY TRUE
)
ENDIF
(
MESH_INTEGRATION_INCLUDE_DIRS
)
file
(
GLOB _libdirs
"
${
CMAKE_SOURCE_DIR
}
/libs/MeshIntegration"
"
${
CMAKE_SOURCE_DIR
}
/Package-*/libs/MeshIntegration"
)
FIND_PATH
(
MESH_INTEGRATION_INCLUDE_DIR PolyLineIntegrationT.hh
PATHS
"
${
_libdirs
}
"
"
${
CMAKE_SOURCE_DIR
}
/libs"
)
INCLUDE
(
FindPackageHandleStandardArgs
)
FIND_PACKAGE_HANDLE_STANDARD_ARGS
(
MeshIntegration DEFAULT_MSG MESH_INTEGRATION_INCLUDE_DIR
)
IF
(
MESHINTEGRATION_FOUND
)
SET
(
MESH_INTEGRATION_INCLUDE_DIRS
"
${
MESH_INTEGRATION_INCLUDE_DIR
}
"
)
SET
(
MESH_INTEGRATION_FOUND TRUE
)
ENDIF
(
MESHINTEGRATION_FOUND
)
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