[proofs] Make sure --proof-check=... is no-op when not checking proofs (#7638)
[cvc5.git] / cmake / FindDrat2Er.cmake
1 ###############################################################################
2 # Top contributors (to current version):
3 # Alex Ozdemir, Mathias Preiner
4 #
5 # This file is part of the cvc5 project.
6 #
7 # Copyright (c) 2009-2021 by the authors listed in the file AUTHORS
8 # in the top-level source directory and their institutional affiliations.
9 # All rights reserved. See the file COPYING in the top-level source
10 # directory for licensing information.
11 # #############################################################################
12 #
13 # Find drat2er
14 # Drat2Er_FOUND - system has Drat2Er lib
15 # Drat2Er_INCLUDE_DIR - the Drat2Er include directory
16 # Drat2Er_LIBRARIES - Libraries needed to use Drat2Er
17 ##
18
19 find_path(Drat2Er_INCLUDE_DIR NAMES drat2er.h)
20 find_library(Drat2Er_LIBRARIES NAMES libdrat2er.a)
21 find_library(DratTrim_LIBRARIES NAMES libdrat-trim.a)
22
23 include(FindPackageHandleStandardArgs)
24 find_package_handle_standard_args(Drat2Er
25 DEFAULT_MSG
26 Drat2Er_INCLUDE_DIR Drat2Er_LIBRARIES DratTrim_LIBRARIES)
27
28 mark_as_advanced(Drat2Er_INCLUDE_DIR Drat2Er_LIBRARIES DratTrim_LIBRARIES)
29 if(Drat2Er_LIBRARIES)
30 message(STATUS "Found Drat2Er libs: ${Drat2Er_LIBRARIES}")
31 endif()
32 if(DratTrim_LIBRARIES)
33 message(STATUS "Found DratTrim libs: ${DratTrim_LIBRARIES}")
34 list(APPEND Drat2Er_LIBRARIES ${DratTrim_LIBRARIES})
35 endif()