-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
85 changed files
with
8,613 additions
and
120 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
# F I N D G T E . C M A K E | ||
# BRL-CAD | ||
# | ||
# Copyright (c) 2024 United States Government as represented by | ||
# the U.S. Army Research Laboratory. | ||
# | ||
# Redistribution and use in source and binary forms, with or without | ||
# modification, are permitted provided that the following conditions | ||
# are met: | ||
# | ||
# 1. Redistributions of source code must retain the above copyright | ||
# notice, this list of conditions and the following disclaimer. | ||
# | ||
# 2. Redistributions in binary form must reproduce the above | ||
# copyright notice, this list of conditions and the following | ||
# disclaimer in the documentation and/or other materials provided | ||
# with the distribution. | ||
# | ||
# 3. The name of the author may not be used to endorse or promote | ||
# products derived from this software without specific prior written | ||
# permission. | ||
# | ||
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS | ||
# OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | ||
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
# ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY | ||
# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE | ||
# GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS | ||
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, | ||
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING | ||
# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS | ||
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
# | ||
### | ||
# Find GeometricTools Mathematics headers | ||
# | ||
# Once done this will define | ||
# | ||
# GTE_FOUND - system has GTE Mathematics headers | ||
# GTE_INCLUDE_DIR - the GTE include directory | ||
# | ||
# and the following imported target: | ||
# | ||
# GTE::GTE- Provides include dir for GeometricTools Mathematics headers | ||
|
||
set(_GTE_SEARCHES) | ||
|
||
# Search GTE_ROOT first if it is set. | ||
if(GTE_ROOT) | ||
set(_GTE_SEARCH_ROOT PATHS ${GTE_ROOT} NO_DEFAULT_PATH) | ||
list(APPEND _GTE_SEARCHES _GTE_SEARCH_ROOT) | ||
endif() | ||
|
||
# Try each search configuration. | ||
foreach(search ${_GTE_SEARCHES}) | ||
find_path(GTE_INCLUDE_DIR NAMES Mathematics/ConvexHull3.h ${${search}} PATH_SUFFIXES include include/GTE) | ||
endforeach() | ||
|
||
mark_as_advanced(GTE_INCLUDE_DIR) | ||
|
||
# handle the QUIETLY and REQUIRED arguments and set ZLIB_FOUND to TRUE if | ||
# all listed variables are TRUE | ||
include(FindPackageHandleStandardArgs) | ||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(GTE REQUIRED_VARS GTE_INCLUDE_DIR) | ||
|
||
if(GTE_FOUND) | ||
set(GTE_INCLUDE_DIRS ${GTE_INCLUDE_DIR}) | ||
|
||
if(NOT TARGET GTE::GTE) | ||
add_library(GTE::GTE UNKNOWN IMPORTED) | ||
set_target_properties(GTE::GTE PROPERTIES | ||
INTERFACE_INCLUDE_DIRECTORIES "${GTE_INCLUDE_DIRS}") | ||
endif() | ||
endif() | ||
|
||
# Local Variables: | ||
# tab-width: 8 | ||
# mode: cmake | ||
# indent-tabs-mode: t | ||
# End: | ||
# ex: shiftwidth=2 tabstop=8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying | ||
# file Copyright.txt or https://cmake.org/licensing for details. | ||
|
||
#[=======================================================================[.rst: | ||
FindMMESH | ||
-------- | ||
Find the native MMESH includes and library. | ||
IMPORTED Targets | ||
^^^^^^^^^^^^^^^^ | ||
This module defines :prop_tgt:`IMPORTED` target ``MMESH::MMESH``, if | ||
MMESH has been found. | ||
Result Variables | ||
^^^^^^^^^^^^^^^^ | ||
This module defines the following variables: | ||
:: | ||
MMESH_INCLUDE_DIRS - where to find mmesh.h, etc. | ||
MMESH_LIBRARIES - List of libraries when using openNURBS. | ||
MMESH_FOUND - True if openNURBS found. | ||
Hints | ||
^^^^^ | ||
A user may set ``MMESH_ROOT`` to a openNURBS installation root to tell this | ||
module where to look. | ||
#]=======================================================================] | ||
|
||
set(_MMESH_SEARCHES) | ||
|
||
# Search MMESH_ROOT first if it is set. | ||
if(MMESH_ROOT) | ||
set(_MMESH_SEARCH_ROOT PATHS ${MMESH_ROOT} NO_DEFAULT_PATH) | ||
list(APPEND _MMESH_SEARCHES _MMESH_SEARCH_ROOT) | ||
endif() | ||
|
||
set(MMESH_NAMES mmesh OSMesa) | ||
|
||
# Try each search configuration. | ||
foreach(search ${_MMESH_SEARCHES}) | ||
find_path(MMESH_INCLUDE_DIR NAMES meshdecimation.h ${${search}} PATH_SUFFIXES include/mmesh mmesh) | ||
endforeach() | ||
|
||
# Allow MMESH_LIBRARY to be set manually, as the location of the openNURBS library | ||
if(NOT MMESH_LIBRARY) | ||
foreach(search ${_MMESH_SEARCHES}) | ||
find_library(MMESH_LIBRARY NAMES ${MMESH_NAMES} NAMES_PER_DIR ${${search}} PATH_SUFFIXES lib) | ||
endforeach() | ||
endif() | ||
|
||
unset(MMESH_NAMES) | ||
|
||
mark_as_advanced(MMESH_INCLUDE_DIR) | ||
|
||
include(FindPackageHandleStandardArgs) | ||
find_package_handle_standard_args(MMESH REQUIRED_VARS MMESH_LIBRARY MMESH_INCLUDE_DIR) | ||
|
||
if(MMESH_FOUND) | ||
set(MMESH_INCLUDE_DIRS ${MMESH_INCLUDE_DIR}) | ||
|
||
if(NOT MMESH_LIBRARIES) | ||
set(MMESH_LIBRARIES ${MMESH_LIBRARY}) | ||
endif() | ||
|
||
if(NOT TARGET MMESH::MMESH) | ||
add_library(MMESH::MMESH UNKNOWN IMPORTED) | ||
set_target_properties(MMESH::MMESH PROPERTIES | ||
INTERFACE_INCLUDE_DIRECTORIES "${MMESH_INCLUDE_DIRS}") | ||
|
||
if(MMESH_LIBRARY_RELEASE) | ||
set_property(TARGET MMESH::MMESH APPEND PROPERTY | ||
IMPORTED_CONFIGURATIONS RELEASE) | ||
set_target_properties(MMESH::MMESH PROPERTIES | ||
IMPORTED_LOCATION_RELEASE "${MMESH_LIBRARY_RELEASE}") | ||
endif() | ||
|
||
if(MMESH_LIBRARY_DEBUG) | ||
set_property(TARGET MMESH::MMESH APPEND PROPERTY | ||
IMPORTED_CONFIGURATIONS DEBUG) | ||
set_target_properties(MMESH::MMESH PROPERTIES | ||
IMPORTED_LOCATION_DEBUG "${MMESH_LIBRARY_DEBUG}") | ||
endif() | ||
|
||
if(NOT MMESH_LIBRARY_RELEASE AND NOT MMESH_LIBRARY_DEBUG) | ||
set_property(TARGET MMESH::MMESH APPEND PROPERTY | ||
IMPORTED_LOCATION "${MMESH_LIBRARY}") | ||
endif() | ||
endif() | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# Find Adaptive Multigrid Solver headers for Poisson Surface Reconstruction | ||
# | ||
# Once done this will define | ||
# | ||
# POISSONRECON_FOUND - system has Adaptive Multigrid Solver headers | ||
# POISSONRECON_INCLUDE_DIR - the Adaptive Multigrid Solver include directory | ||
# | ||
# and the following imported target: | ||
# | ||
# POISSONRECON::POISSONRECON- Provides include dir for headers | ||
|
||
set(_POISSONRECON_SEARCHES) | ||
|
||
# Search POISSONRECON_ROOT first if it is set. | ||
if(POISSONRECON_ROOT) | ||
set(_POISSONRECON_SEARCH_ROOT PATHS ${POISSONRECON_ROOT} NO_DEFAULT_PATH) | ||
list(APPEND _POISSONRECON_SEARCHES _POISSONRECON_SEARCH_ROOT) | ||
endif() | ||
|
||
# Try each search configuration. | ||
foreach(search ${_POISSONRECON_SEARCHES}) | ||
find_path(POISSONRECON_INCLUDE_DIR NAMES SPSR/Reconstructors.h ${${search}} PATH_SUFFIXES include) | ||
endforeach() | ||
|
||
mark_as_advanced(POISSONRECON_INCLUDE_DIR) | ||
|
||
# handle the QUIETLY and REQUIRED arguments and set ZLIB_FOUND to TRUE if | ||
# all listed variables are TRUE | ||
include(FindPackageHandleStandardArgs) | ||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(POISSONRECON REQUIRED_VARS POISSONRECON_INCLUDE_DIR) | ||
|
||
if(POISSONRECON_FOUND) | ||
set(POISSONRECON_INCLUDE_DIRS ${POISSONRECON_INCLUDE_DIR}) | ||
|
||
if(NOT TARGET POISSONRECON::POISSONRECON) | ||
add_library(POISSONRECON::POISSONRECON UNKNOWN IMPORTED) | ||
set_target_properties(POISSONRECON::POISSONRECON PROPERTIES | ||
INTERFACE_INCLUDE_DIRECTORIES "${POISSONRECON_INCLUDE_DIRS}") | ||
endif() | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.