2 # ABC_FOUND - system has ABC lib
3 # ABC_INCLUDE_DIR - the ABC include directory
4 # ABC_LIBRARIES - Libraries needed to use ABC
5 # ABC_ARCH_FLAGS - Platform specific compile flags
8 # Check default location of ABC built with contrib/get-abc.
10 set(ABC_HOME ${PROJECT_SOURCE_DIR}/abc/alanmi-abc-53f39c11b58d)
13 # Note: We don't check the system version since ABC does not provide a default
15 find_path(ABC_INCLUDE_DIR
19 find_library(ABC_LIBRARIES
23 find_program(ABC_ARCH_FLAGS_PROG
28 if(ABC_ARCH_FLAGS_PROG)
29 execute_process(COMMAND ${ABC_ARCH_FLAGS_PROG}
30 OUTPUT_VARIABLE ABC_ARCH_FLAGS)
33 include(FindPackageHandleStandardArgs)
34 find_package_handle_standard_args(ABC
36 ABC_INCLUDE_DIR ABC_LIBRARIES ABC_ARCH_FLAGS)
38 mark_as_advanced(ABC_INCLUDE_DIR ABC_LIBRARIES ABC_ARCH_FLAGS)
40 message(STATUS "Found ABC libs: ${ABC_LIBRARIES}")