Browse Source
carl conf imported, other dependencies declared als import target and exported to storm conf
tempestpy_adaptions
carl conf imported, other dependencies declared als import target and exported to storm conf
tempestpy_adaptions
Sebastian Junges
8 years ago
12 changed files with 96 additions and 153 deletions
-
2CMakeLists.txt
-
64resources/3rdparty/CMakeLists.txt
-
12resources/3rdparty/include_cudd.cmake
-
9resources/3rdparty/include_glpk.cmake
-
0resources/3rdparty/include_xerces.cmake.save
-
49resources/3rdparty/include_xerces.cmake.save.1
-
43resources/cmake/find_modules/FindCLN.cmake
-
54resources/cmake/find_modules/FindGiNaC.cmake
-
3resources/cmake/macros/export.cmake
-
3resources/cmake/macros/imported.cmake
-
2src/CMakeLists.txt
-
6src/storm/CMakeLists.txt
@ -0,0 +1,49 @@ |
|||||
|
if(USE_XERCESC) |
||||
|
set(XERCESC_FIND_QUIETLY ON) |
||||
|
set(XERCESC_STATIC OFF) |
||||
|
find_package(XercesC QUIET REQUIRED) |
||||
|
if(XERCESC_FOUND) |
||||
|
message(STATUS "Storm - Use system version of xerces.") |
||||
|
else() |
||||
|
message(STATUS "Storm - Use shipped version of xerces.") |
||||
|
set(XERCESC_LIB_DIR ${STORM_3RDPARTY_BINARY_DIR}/xercesc-3.1.2/lib) |
||||
|
ExternalProject_Add( |
||||
|
xercesc |
||||
|
SOURCE_DIR ${STORM_3RDPARTY_SOURCE_DIR}/xercesc-3.1.2 |
||||
|
CONFIGURE_COMMAND ${STORM_3RDPARTY_SOURCE_DIR}/xercesc-3.1.2/configure --prefix=${STORM_3RDPARTY_BINARY_DIR}/xercesc-3.1.2 --libdir=${XERCESC_LIB_DIR} CC=${CMAKE_C_COMPILER} CXX=${CMAKE_CXX_COMPILER} CFLAGS=-O3 CXXFLAGS=-O3 |
||||
|
PREFIX ${STORM_3RDPARTY_BINARY_DIR}/xercesc-3.1.2 |
||||
|
BUILD_COMMAND make |
||||
|
BUILD_IN_SOURCE 0 |
||||
|
LOG_CONFIGURE ON |
||||
|
LOG_BUILD ON |
||||
|
LOG_INSTALL ON |
||||
|
BUILD_BYPRODUCTS ${XERCESC_LIB_DIR}/libxerces-c${DYNAMIC_EXT} ${XERCESC_LIB_DIR}/libxerces-c${STATIC_EXT} |
||||
|
) |
||||
|
|
||||
|
set(XERCESC_ROOT ${STORM_3RDPARTY_BINARY_DIR}/xercesc-3.1.2) |
||||
|
set(XERCESC_INCLUDE ${XERCESC_ROOT}/include) |
||||
|
set(XERCESC_LIBRARY_PATH ${XERCESC_LIB_DIR}) |
||||
|
|
||||
|
if(BUILD_STATIC) |
||||
|
set(XERCESC_LIBRARIES ${XERCESC_LIBRARY_PATH}/libxerces-c${STATIC_EXT}) |
||||
|
else() |
||||
|
set(XERCESC_LIBRARIES ${XERCESC_LIBRARY_PATH}/libxerces-c${DYNAMIC_EXT}) |
||||
|
endif() |
||||
|
|
||||
|
add_dependencies(resources xercesc) |
||||
|
endif() |
||||
|
|
||||
|
message (STATUS "Storm - Linking with xercesc.") |
||||
|
set(STORM_HAVE_XERCES ON) |
||||
|
include_directories(${XERCESC_INCLUDE}) |
||||
|
if(APPLE) |
||||
|
FIND_LIBRARY(COREFOUNDATION_LIBRARY CoreFoundation ) |
||||
|
FIND_LIBRARY(CORESERVICES_LIBRARY CoreServices ) |
||||
|
mark_as_advanced(COREFOUNDATION_LIBRARY) |
||||
|
mark_as_advanced(CORESERVICES_LIBRARY) |
||||
|
endif() |
||||
|
find_package(CURL) |
||||
|
list(APPEND STORM_GSPN_LINK_LIBRARIES ${XERCESC_LIBRARIES} ${COREFOUNDATION_LIBRARY} ${CORESERVICES_LIBRARY} ${CURL_LIBRARIES}) |
||||
|
else() |
||||
|
message (WARNING "Storm - Building without Xerces disables parsing XML formats (for GSPNs)") |
||||
|
endif(USE_XERCESC) |
@ -1,43 +0,0 @@ |
|||||
# - Try to find libcln |
|
||||
# Once done this will define |
|
||||
# CLN_FOUND - System has cln |
|
||||
# CLN_INCLUDE_DIR - The cln include directory |
|
||||
# CLN_LIBRARIES - The libraries needed to use cln |
|
||||
# CLN_VERSION_STRING - The version of cln ("major.minor.patch") |
|
||||
|
|
||||
# use pkg-config to get the directories and then use these values |
|
||||
# in the find_path() and find_library() calls |
|
||||
find_package(PkgConfig QUIET) |
|
||||
PKG_CHECK_MODULES(PC_CLN QUIET cln) |
|
||||
|
|
||||
find_path(CLN_INCLUDE_DIR NAMES cln/cln.h |
|
||||
HINTS |
|
||||
${PC_CLN_INCLUDEDIR} |
|
||||
${PC_CLN_INCLUDE_DIRS} |
|
||||
PATH_SUFFIXES cln |
|
||||
) |
|
||||
|
|
||||
find_library(CLN_LIBRARIES NAMES cln |
|
||||
HINTS |
|
||||
${PC_CLN_LIBDIR} |
|
||||
${PC_CLN_LIBRARY_DIRS} |
|
||||
) |
|
||||
|
|
||||
if(PC_CLN_VERSION) |
|
||||
set(CLN_VERSION_STRING ${PC_CLN_VERSION}) |
|
||||
elseif(CLN_INCLUDE_DIR AND EXISTS "${CLN_INCLUDE_DIR}/version.h") |
|
||||
file(STRINGS "${CLN_INCLUDE_DIR}/version.h" cln_version |
|
||||
REGEX "^#define[\t ]+CL_VERSION[\t ]+.+") |
|
||||
string(REGEX REPLACE "^#define[\t ]+CL_VERSION[\t ]+(.+)" "\\1" |
|
||||
CLN_VERSION_STRING "${cln_version}") |
|
||||
unset(cln_version) |
|
||||
endif() |
|
||||
|
|
||||
# handle the QUIETLY and REQUIRED arguments and set LIBXML2_FOUND to TRUE if |
|
||||
# all listed variables are TRUE |
|
||||
include(FindPackageHandleStandardArgs) |
|
||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(CLN |
|
||||
REQUIRED_VARS CLN_LIBRARIES CLN_INCLUDE_DIR |
|
||||
VERSION_VAR CLN_VERSION_STRING) |
|
||||
|
|
||||
mark_as_advanced(CLN_INCLUDE_DIR CLN_LIBRARIES) |
|
@ -1,54 +0,0 @@ |
|||||
# - Try to find libginac |
|
||||
# Once done this will define |
|
||||
# GINAC_FOUND - System has ginac |
|
||||
# GINAC_INCLUDE_DIR - The ginac include directory |
|
||||
# GINAC_LIBRARIES - The libraries needed to use ginac |
|
||||
# GINAC_VERSION_STRING - The version of ginac ("major.minor.micro") |
|
||||
|
|
||||
# use pkg-config to get the directories and then use these values |
|
||||
# in the find_path() and find_library() calls |
|
||||
find_package(PkgConfig QUIET) |
|
||||
PKG_CHECK_MODULES(PC_GINAC QUIET ginac) |
|
||||
|
|
||||
find_path(GINAC_INCLUDE_DIR NAMES ginac.h |
|
||||
HINTS |
|
||||
${PC_GINAC_INCLUDEDIR} |
|
||||
${PC_GINAC_INCLUDE_DIRS} |
|
||||
PATH_SUFFIXES ginac |
|
||||
) |
|
||||
|
|
||||
find_library(GINAC_LIBRARIES NAMES ginac |
|
||||
HINTS |
|
||||
${PC_GINAC_LIBDIR} |
|
||||
${PC_GINAC_LIBRARY_DIRS} |
|
||||
) |
|
||||
|
|
||||
if(PC_GINAC_VERSION) |
|
||||
set(GINAC_VERSION_STRING ${PC_GINAC_VERSION}) |
|
||||
elseif(GINAC_INCLUDE_DIR AND EXISTS "${GINAC_INCLUDE_DIR}/ginac.h") |
|
||||
file(STRINGS "${GINAC_INCLUDE_DIR}/ginac.h" ginac_major_version |
|
||||
REGEX "^#define[\t ]+GINACLIB_MAJOR_VERSION[\t ]+.+") |
|
||||
file(STRINGS "${GINAC_INCLUDE_DIR}/ginac.h" ginac_minor_version |
|
||||
REGEX "^#define[\t ]+GINACLIB_MINOR_VERSION[\t ]+.+") |
|
||||
file(STRINGS "${GINAC_INCLUDE_DIR}/ginac.h" ginac_micro_version |
|
||||
REGEX "^#define[\t ]+GINACLIB_MICRO_VERSION[\t ]+.+") |
|
||||
string(REGEX REPLACE "^#define[\t ]+GINACLIB_MAJOR_VERSION[\t ]+(.+)" "\\1" |
|
||||
ginac_major_version "${ginac_major_version}") |
|
||||
string(REGEX REPLACE "^#define[\t ]+GINACLIB_MINOR_VERSION[\t ]+(.+)" "\\1" |
|
||||
ginac_minor_version "${ginac_minor_version}") |
|
||||
string(REGEX REPLACE "^#define[\t ]+GINACLIB_MICRO_VERSION[\t ]+(.+)" "\\1" |
|
||||
ginac_micro_version "${ginac_micro_version}") |
|
||||
set(GINAC_VERSION_STRING "${ginac_major_version}.${ginac_minor_version}.${ginac_micro_version}") |
|
||||
unset(ginac_major_version) |
|
||||
unset(ginac_minor_version) |
|
||||
unset(ginac_micro_version) |
|
||||
endif() |
|
||||
|
|
||||
# handle the QUIETLY and REQUIRED arguments and set GINAC_FOUND to TRUE if |
|
||||
# all listed variables are TRUE |
|
||||
include(FindPackageHandleStandardArgs) |
|
||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(GINAC |
|
||||
REQUIRED_VARS GINAC_LIBRARIES GINAC_INCLUDE_DIR |
|
||||
VERSION_VAR GINAC_VERSION_STRING) |
|
||||
|
|
||||
mark_as_advanced(GINAC_INCLUDE_DIR GINAC_LIBRARIES) |
|
Write
Preview
Loading…
Cancel
Save
Reference in new issue