Fix quantifiers variable elimination for parametric datatypes (#7358)
[cvc5.git] / cmake / FindABC.cmake
1 ###############################################################################
2 # Top contributors (to current version):
3 # 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 ABC
14 # ABC_FOUND - system has ABC lib
15 # ABC_INCLUDE_DIR - the ABC include directory
16 # ABC_LIBRARIES - Libraries needed to use ABC
17 # ABC_ARCH_FLAGS - Platform specific compile flags
18 ##
19
20 # Note: contrib/get-abc copies header files to deps/install/include/abc.
21 # However, includes in ABC headers are not prefixed with "abc/" and therefore
22 # we have to look for headers in include/abc instead of include/.
23 find_path(ABC_INCLUDE_DIR NAMES base/abc/abc.h PATH_SUFFIXES abc)
24 find_library(ABC_LIBRARIES NAMES abc)
25 find_program(ABC_ARCH_FLAGS_PROG NAMES arch_flags)
26
27 if(ABC_ARCH_FLAGS_PROG)
28 execute_process(COMMAND ${ABC_ARCH_FLAGS_PROG}
29 OUTPUT_VARIABLE ABC_ARCH_FLAGS)
30 endif()
31
32 include(FindPackageHandleStandardArgs)
33 find_package_handle_standard_args(ABC
34 DEFAULT_MSG
35 ABC_INCLUDE_DIR ABC_LIBRARIES ABC_ARCH_FLAGS)
36
37 mark_as_advanced(ABC_INCLUDE_DIR ABC_LIBRARIES ABC_ARCH_FLAGS)
38 if(ABC_LIBRARIES)
39 message(STATUS "Found ABC libs: ${ABC_LIBRARIES}")
40 endif()