cmake work

This commit is contained in:
Vítor Santos Costa
2015-04-21 16:12:18 -06:00
parent e043e7595e
commit 3b4226bda1
5 changed files with 27 additions and 3 deletions

View File

@@ -6,6 +6,8 @@ SET ( YAP_BDD_VERSION 0.1)
SET(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake ${CMAKE_MODULE_PATH})
SET( CMAKE_FIND_FRAMEWORK LAST)
SET( CMAKE_FIND_APPBUNDLE LAST)
if (NOT YAP_FOUND)
FIND_PACKAGE(YAP REQUIRED)
@@ -30,6 +32,16 @@ IF (CUDD_FOUND)
.
)
check_include_file( util.h HAVE_UTIL_H )
check_include_file( cudd/util.h HAVE_CUDD_UTIL_H )
check_include_file( cudd.h HAVE_CUDD_H )
check_include_file( cudd/cudd.h HAVE_CUDD_CUDD_H )
check_include_file( cuddInt.h HAVE_CUDDINT_H )
check_include_file( cudd/cuddInt.h HAVE_CUDD_CUDDINT_H )
configure_file ("${PROJECT_SOURCE_DIR}/cudd_config.h.cmake"
"${PROJECT_BINARY_DIR}/cudd_config.h" )
SET ( BDD_SOURCES
cudd.c
)

View File

@@ -42,9 +42,14 @@ if ( NOT( CUDD_INCLUDE_DIR AND CUDD_LIBRARIES ) OR NOT CUDD_FOUND )
/opt/csw/include # Blastwave
/opt/include
/usr/freeware/include
NO_DEFAULT_PATHS
)
find_path(CUDD_INCLUDE_DIR
NAMES cudd.h
)
find_library(CUDD_INTERFACE_LIBRARY
NAMES cudd
PATHS

View File

@@ -113,6 +113,7 @@ mkdir -p packages/bdd
if test "$PKG_BDDLIB" != ""; then
AC_CONFIG_FILES([packages/bdd/Makefile])
AC_CONFIG_FILES([packages/bdd/Makefile/config.h])
AC_CONFIG_FILES([packages/ProbLog/simplecudd/Makefile])
AC_CONFIG_FILES([packages/ProbLog/simplecudd_lfi/Makefile])
fi

View File

@@ -38,6 +38,7 @@ CUDD will generate better/faster code.
#include <stdio.h>
#include "config.h"
#include "cudd_config.h"
#include "YapInterface.h"
#if HAVE_UTIL_H