2016-04-05 02:22:49 +01:00
|
|
|
# - Try to find the CUDD BDD package
|
|
|
|
# Once done this will define
|
2016-03-30 17:35:03 +01:00
|
|
|
#
|
2016-04-05 02:22:49 +01:00
|
|
|
# CUDD_FOUND - system has CUDD
|
|
|
|
# CUDD_LIBRARIES - Link these to use CUDD
|
|
|
|
# CUDD_INCLUDE_DIR - Include directory for using CUDD
|
2016-03-30 17:35:03 +01:00
|
|
|
#
|
2016-04-05 02:22:49 +01:00
|
|
|
# Based on FindFontconfig Copyright (c) 2006,2007 Laurent Montel, <montel@kde.org>
|
2016-03-30 17:35:03 +01:00
|
|
|
#
|
2016-04-05 02:22:49 +01:00
|
|
|
# Redistribution and use is allowed according to the terms of the BSD license.
|
|
|
|
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
|
|
|
|
|
2016-08-23 17:15:07 +01:00
|
|
|
SET( CUDD_FOUND "NO" )
|
2016-04-05 02:22:49 +01:00
|
|
|
|
2016-08-23 17:15:07 +01:00
|
|
|
set (CUDD_INCLUDE_SEARCH_PATH
|
2016-12-03 16:35:39 +00:00
|
|
|
${CUDD_ROOT_DIR}/include
|
2016-08-23 17:15:07 +01:00
|
|
|
${CMAKE_INSTALL_PREFIX}/include
|
2016-04-05 02:22:49 +01:00
|
|
|
/usr/local/yap/include
|
|
|
|
/usr/local/Yap/include
|
2016-04-14 11:58:35 +01:00
|
|
|
/usr/local/cudd/include
|
|
|
|
/usr/lib/cudd/include
|
2016-04-05 02:22:49 +01:00
|
|
|
~/Library/Frameworks
|
|
|
|
/Library/Frameworks
|
|
|
|
/usr/local/include
|
|
|
|
/usr/include/
|
|
|
|
/sw/include # Fink
|
|
|
|
/opt/local/include # MacPorts
|
|
|
|
/opt/csw/include # Blastwave
|
|
|
|
/opt/include
|
|
|
|
/usr/freeware/include
|
|
|
|
)
|
2016-04-14 11:58:35 +01:00
|
|
|
|
2016-05-30 11:23:36 +01:00
|
|
|
|
2016-04-14 11:58:35 +01:00
|
|
|
|
2016-04-05 02:22:49 +01:00
|
|
|
set (CUDD_LIB_SEARCH_PATH
|
2016-12-03 16:35:39 +00:00
|
|
|
${CUDD_ROOT_DIR}/lib
|
2016-08-23 17:15:07 +01:00
|
|
|
${CMAKE_INSTALL_PREFIX}/lib
|
2016-07-31 16:29:15 +01:00
|
|
|
/usr/lib
|
|
|
|
/usr/local/lib/cudd
|
2016-04-14 11:58:35 +01:00
|
|
|
/usr/local/cudd/lib
|
2016-04-05 02:22:49 +01:00
|
|
|
/usr/lib/cudd
|
2016-04-14 11:58:35 +01:00
|
|
|
/usr/lib/cudd/lib
|
2016-08-23 17:15:07 +01:00
|
|
|
/usr/freeware/lib )
|
|
|
|
|
|
|
|
if ($ENV{CUDD_ROOT})
|
|
|
|
list (APPEND CUDD_LIB_SEARCH_PATH
|
|
|
|
$ENV{CUDD_ROOT}/lib
|
|
|
|
$ENV{CUDD_ROOT}/lib-dbg
|
|
|
|
$ENV{CUDD_ROOT} )
|
|
|
|
|
|
|
|
list (APPEND CUDD_INCLUDE_SEARCH_PATH
|
|
|
|
$ENV{CUDD_ROOT}/include )
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if (${CUDD_ROOT})
|
|
|
|
list (APPEND CUDD_LIB_SEARCH_PATH
|
|
|
|
${CUDD_ROOT}/lib
|
|
|
|
${CUDD_ROOT}/lib-dbg
|
|
|
|
${CUDD_ROOT} )
|
|
|
|
list (APPEND CUDD_INCLUDE_SEARCH_PATH
|
|
|
|
${CUDD_ROOT}/include )
|
|
|
|
endif()
|
|
|
|
|
|
|
|
# Check if we have cached results in case the last round was successful.
|
|
|
|
|
|
|
|
find_package(PkgConfig)
|
|
|
|
|
|
|
|
find_path(CUDD_INCLUDE_DIR
|
|
|
|
NAMES cudd.h cudd/cudd.h
|
|
|
|
${CUDD_INCLUDE_SEARCH_PATH}
|
|
|
|
)
|
|
|
|
|
|
|
|
mark_as_advanced(CUDD_INCLUDE_DIR)
|
|
|
|
|
|
|
|
if (CUDD_INCLUDE_DIR)
|
2016-04-14 11:58:35 +01:00
|
|
|
|
|
|
|
find_library(CUDD_LIBRARIES
|
2016-04-05 02:22:49 +01:00
|
|
|
NAMES cudd
|
|
|
|
PATHS
|
|
|
|
${CUDD_LIB_SEARCH_PATH}
|
|
|
|
)
|
2016-04-14 11:58:35 +01:00
|
|
|
|
2016-08-23 17:15:07 +01:00
|
|
|
if (CUDD_LIBRARIES)
|
|
|
|
|
|
|
|
SET( CUDD_FOUND "YES" )
|
|
|
|
|
2016-04-14 11:58:35 +01:00
|
|
|
find_library(CUDD_DDDMP_LIBRARY
|
|
|
|
NAMES dddmp
|
2016-04-05 02:22:49 +01:00
|
|
|
PATHS
|
|
|
|
${CUDD_LIB_SEARCH_PATH}
|
|
|
|
)
|
2016-04-14 11:58:35 +01:00
|
|
|
|
2016-08-23 17:15:07 +01:00
|
|
|
if (CUDD_DDMP_LIBRARY)
|
|
|
|
list( APPEND CUDD_LIBRARIES ${CUDD_DDMP_LIBRARY} )
|
|
|
|
endif()
|
|
|
|
|
2016-04-05 02:22:49 +01:00
|
|
|
find_library(CUDD_EPD_LIBRARY
|
|
|
|
NAMES epd
|
|
|
|
PATHS
|
|
|
|
${CUDD_LIB_SEARCH_PATH}
|
|
|
|
)
|
|
|
|
|
2016-08-23 17:15:07 +01:00
|
|
|
if (CUDD_EPD_LIBRARY)
|
|
|
|
list( APPEND CUDD_LIBRARIES ${CUDD_EPD_LIBRARY} )
|
|
|
|
endif()
|
|
|
|
|
2016-04-05 02:22:49 +01:00
|
|
|
find_library(CUDD_ST_LIBRARY
|
2016-08-23 17:15:07 +01:00
|
|
|
NAMES cuddst
|
2016-04-05 02:22:49 +01:00
|
|
|
PATHS
|
|
|
|
${CUDD_LIB_SEARCH_PATH}
|
|
|
|
)
|
|
|
|
|
2016-08-23 17:15:07 +01:00
|
|
|
if (CUDD_ST_LIBRARY)
|
|
|
|
list( APPEND CUDD_LIBRARIES ${CUDD_ST_LIBRARY} )
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
2016-04-05 02:22:49 +01:00
|
|
|
|
|
|
|
find_library(CUDD_UTIL_LIBRARY
|
2016-08-23 17:15:07 +01:00
|
|
|
NAMES cuddutil
|
2016-04-05 02:22:49 +01:00
|
|
|
|
|
|
|
PATHS
|
|
|
|
${CUDD_LIB_SEARCH_PATH}
|
|
|
|
)
|
|
|
|
|
2016-08-23 17:15:07 +01:00
|
|
|
if (CUDD_UTIL_LIBRARY)
|
|
|
|
list( APPEND CUDD_LIBRARIES ${CUDD_ST_LIBRARY} )
|
|
|
|
endif()
|
|
|
|
|
2016-04-05 02:22:49 +01:00
|
|
|
find_library(CUDD_MTR_LIBRARY
|
|
|
|
NAMES mtr
|
|
|
|
PATHS
|
|
|
|
${CUDD_LIB_SEARCH_PATH}
|
|
|
|
)
|
|
|
|
|
2016-08-23 17:15:07 +01:00
|
|
|
if (CUDD_MTR_LIBRARY)
|
|
|
|
list( APPEND CUDD_LIBRARIES ${CUDD_MTR_LIBRARY} )
|
|
|
|
endif()
|
2016-03-30 17:35:03 +01:00
|
|
|
|
2016-08-23 17:15:07 +01:00
|
|
|
endif()
|
2016-03-30 17:35:03 +01:00
|
|
|
|
2016-08-23 17:15:07 +01:00
|
|
|
endif()
|
|
|
|
|
|
|
|
mark_as_advanced(CUDD_LIBRARIES)
|
2016-03-30 17:35:03 +01:00
|
|
|
|
2016-04-18 16:41:30 +01:00
|
|
|
|
|
|
|
|
2016-04-05 02:22:49 +01:00
|
|
|
mark_as_advanced (CUDD_FOUND)
|
2016-04-15 11:32:22 +01:00
|
|
|
|
2016-04-18 16:41:30 +01:00
|
|
|
|
2016-08-23 17:15:07 +01:00
|
|
|
find_package_handle_standard_args(CUDD DEFAULT_MSG CUDD_LIBRARIES CUDD_INCLUDE_DIR )
|
2016-04-15 11:32:22 +01:00
|
|
|
|