-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathFindGmsh.cmake
More file actions
34 lines (29 loc) · 1009 Bytes
/
FindGmsh.cmake
File metadata and controls
34 lines (29 loc) · 1009 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
################################################################################
#
# \file FindGmsh.cmake
# \copyright 2012-2015 J. Bakosi,
# 2016-2018 Los Alamos National Security, LLC.,
# 2019-2021 Triad National Security, LLC.
# All rights reserved. See the LICENSE file for details.
# \brief Find Gmsh
#
################################################################################
# Gmsh: http://gmsh.info
#
# GMSH_FOUND - System has gmsh
# GMSH_EXECUTABLE - The gmsh executable
#
# Usage:
#
# set(GMSH_ROOT "/path/to/custom/gmsh") # prefer over system
# find_package(Gmsh)
if(GMSH_EXECUTABLE)
# Already in cache, be silent
set (GMSH_FIND_QUIETLY TRUE)
endif()
find_program(GMSH_EXECUTABLE NAMES gmsh)
# Handle the QUIETLY and REQUIRED arguments and set GMSH_FOUND to TRUE if
# all listed variables are TRUE.
INCLUDE(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Gmsh DEFAULT_MSG GMSH_EXECUTABLE)
MARK_AS_ADVANCED(GMSH_EXECUTABLE)