1 ###############################################################################
2 # Top contributors (to current version):
5 # This file is part of the cvc5 project.
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 # #############################################################################
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
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)
27 if(ABC_ARCH_FLAGS_PROG)
28 execute_process(COMMAND ${ABC_ARCH_FLAGS_PROG}
29 OUTPUT_VARIABLE ABC_ARCH_FLAGS)
32 include(FindPackageHandleStandardArgs)
33 find_package_handle_standard_args(ABC
35 ABC_INCLUDE_DIR ABC_LIBRARIES ABC_ARCH_FLAGS)
37 mark_as_advanced(ABC_INCLUDE_DIR ABC_LIBRARIES ABC_ARCH_FLAGS)
39 message(STATUS "Found ABC libs: ${ABC_LIBRARIES}")