############################################################################### # Top contributors (to current version): # Mathias Preiner # # This file is part of the cvc5 project. # # Copyright (c) 2009-2021 by the authors listed in the file AUTHORS # in the top-level source directory and their institutional affiliations. # All rights reserved. See the file COPYING in the top-level source # directory for licensing information. # ############################################################################# # # Find ABC # ABC_FOUND - system has ABC lib # ABC_INCLUDE_DIR - the ABC include directory # ABC_LIBRARIES - Libraries needed to use ABC # ABC_ARCH_FLAGS - Platform specific compile flags ## # Note: contrib/get-abc copies header files to deps/install/include/abc. # However, includes in ABC headers are not prefixed with "abc/" and therefore # we have to look for headers in include/abc instead of include/. find_path(ABC_INCLUDE_DIR NAMES base/abc/abc.h PATH_SUFFIXES abc) find_library(ABC_LIBRARIES NAMES abc) find_program(ABC_ARCH_FLAGS_PROG NAMES arch_flags) if(ABC_ARCH_FLAGS_PROG) execute_process(COMMAND ${ABC_ARCH_FLAGS_PROG} OUTPUT_VARIABLE ABC_ARCH_FLAGS) endif() include(FindPackageHandleStandardArgs) find_package_handle_standard_args(ABC DEFAULT_MSG ABC_INCLUDE_DIR ABC_LIBRARIES ABC_ARCH_FLAGS) mark_as_advanced(ABC_INCLUDE_DIR ABC_LIBRARIES ABC_ARCH_FLAGS) if(ABC_LIBRARIES) message(STATUS "Found ABC libs: ${ABC_LIBRARIES}") endif()