-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathFindExodiff.cmake
More file actions
40 lines (35 loc) · 1.28 KB
/
FindExodiff.cmake
File metadata and controls
40 lines (35 loc) · 1.28 KB
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
35
36
37
38
39
40
################################################################################
#
# \file FindExodiff.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 Exodiff
#
################################################################################
# Find the exodiff executable part of the ExodusII / Trilinos/SEACAS package
#
# EXODIFF_FOUND - True if the exodiff executable was found
# EXODIFF_EXECUTABLE - The exodiff executable
#
# Set EXODUS_ROOT before calling find_package to a path to add an additional
# search path, e.g.,
#
# Usage:
#
# set(EXODUS_ROOT "/path/to/custom/exodus") # prefer over system
# find_package(Exodiff)
# if(EXODIFF_FOUND)
# # use ${EXODIFF_EXECUTABLE} ...
# endif()
INCLUDE(FindCygwin)
FIND_PROGRAM(EXODIFF_EXECUTABLE
NAMES exodiff
PATHS ${CYGWIN_INSTALL_PATH}/bin ${EXODUS_ROOT}/bin $ENV{EXODUS_ROOT}/bin
)
# handle the QUIETLY and REQUIRED arguments and set EXODIFF_FOUND to TRUE if
# all listed variables are TRUE
INCLUDE(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Exodiff DEFAULT_MSG EXODIFF_EXECUTABLE)
MARK_AS_ADVANCED(EXODIFF_EXECUTABLE)