Browse Source

Ninja recognizes dependencies + build shared libs

Former-commit-id: 569c0da147
tempestpy_adaptions
Mavo 8 years ago
committed by Matthias Volk
parent
commit
621cc58a67
  1. 8
      CMakeLists.txt
  2. 8
      resources/3rdparty/CMakeLists.txt
  3. 6
      resources/3rdparty/include_cudd.cmake
  4. 2
      resources/3rdparty/include_xerces.cmake
  5. 2
      src/CMakeLists.txt

8
CMakeLists.txt

@ -122,6 +122,14 @@ endif()
message(STATUS "Assuming extension for shared libraries: ${DYNAMIC_EXT}") message(STATUS "Assuming extension for shared libraries: ${DYNAMIC_EXT}")
message(STATUS "Assuming extension for static libraries: ${STATIC_EXT}") message(STATUS "Assuming extension for static libraries: ${STATIC_EXT}")
if(BUILD_SHARED_LIBS)
set(LIB_EXT ${DYNAMIC_EXT})
message(STATUS "Build dynamic libraries.")
else()
set(LIB_EXT ${STATIC_EXT})
message(STATUS "Build static libraries.")
endif()
############################################################# #############################################################
## ##
## Compiler detection and initial configuration ## Compiler detection and initial configuration

8
resources/3rdparty/CMakeLists.txt

@ -355,10 +355,10 @@ ExternalProject_Add(
PREFIX "sylvan" PREFIX "sylvan"
SOURCE_DIR ${STORM_3RDPARTY_SOURCE_DIR}/sylvan SOURCE_DIR ${STORM_3RDPARTY_SOURCE_DIR}/sylvan
CMAKE_ARGS -DCMAKE_C_COMPILER=${CMAKE_C_COMPILER} -DSYLVAN_BUILD_TEST=Off -DSYLVAN_BUILD_EXAMPLES=Off -DCMAKE_BUILD_TYPE=Release CMAKE_ARGS -DCMAKE_C_COMPILER=${CMAKE_C_COMPILER} -DSYLVAN_BUILD_TEST=Off -DSYLVAN_BUILD_EXAMPLES=Off -DCMAKE_BUILD_TYPE=Release
BINARY_DIR "${PROJECT_BINARY_DIR}/sylvan"
BINARY_DIR ${PROJECT_BINARY_DIR}/sylvan
BUILD_IN_SOURCE 0 BUILD_IN_SOURCE 0
INSTALL_COMMAND "" INSTALL_COMMAND ""
INSTALL_DIR "${STORM_3RDPARTY_BINARY_DIR}/sylvan"
INSTALL_DIR ${STORM_3RDPARTY_BINARY_DIR}/sylvan
LOG_CONFIGURE ON LOG_CONFIGURE ON
LOG_BUILD ON LOG_BUILD ON
BUILD_BYPRODUCTS ${PROJECT_BINARY_DIR}/sylvan/src/libsylvan${STATIC_EXT} BUILD_BYPRODUCTS ${PROJECT_BINARY_DIR}/sylvan/src/libsylvan${STATIC_EXT}
@ -366,7 +366,7 @@ ExternalProject_Add(
ExternalProject_Get_Property(sylvan source_dir) ExternalProject_Get_Property(sylvan source_dir)
ExternalProject_Get_Property(sylvan binary_dir) ExternalProject_Get_Property(sylvan binary_dir)
set(Sylvan_INCLUDE_DIR "${source_dir}/src") set(Sylvan_INCLUDE_DIR "${source_dir}/src")
set(Sylvan_LIBRARY "${binary_dir}/src/libsylvan.a")
set(Sylvan_LIBRARY "${binary_dir}/src/libsylvan${STATIC_EXT}")
message(STATUS "Storm - Using shipped version of sylvan.") message(STATUS "Storm - Using shipped version of sylvan.")
message(STATUS "Storm - Linking with sylvan.") message(STATUS "Storm - Linking with sylvan.")
include_directories("${Sylvan_INCLUDE_DIR}") include_directories("${Sylvan_INCLUDE_DIR}")
@ -414,7 +414,7 @@ ExternalProject_Get_Property(googletest source_dir)
set(GTEST_INCLUDE_DIR ${source_dir}/include) set(GTEST_INCLUDE_DIR ${source_dir}/include)
# Specify MainTest's link libraries # Specify MainTest's link libraries
ExternalProject_Get_Property(googletest binary_dir) ExternalProject_Get_Property(googletest binary_dir)
set(GTEST_LIBRARIES ${binary_dir}/libgtest.a ${binary_dir}/libgtest_main.a)
set(GTEST_LIBRARIES ${binary_dir}/libgtest${LIB_EXT} ${binary_dir}/libgtest_main${LIB_EXT})
add_dependencies(test-resources googletest) add_dependencies(test-resources googletest)
list(APPEND STORM_TEST_LINK_LIBRARIES ${GTEST_LIBRARIES}) list(APPEND STORM_TEST_LINK_LIBRARIES ${GTEST_LIBRARIES})

6
resources/3rdparty/include_cudd.cmake

@ -25,7 +25,11 @@ set(CUDD_INCLUDE_DIR ${STORM_3RDPARTY_BINARY_DIR}/cudd-3.0.0/include)
set(CUDD_SHARED_LIBRARY ${CUDD_LIB_DIR}/libcudd${DYNAMIC_EXT}) set(CUDD_SHARED_LIBRARY ${CUDD_LIB_DIR}/libcudd${DYNAMIC_EXT})
set(CUDD_STATIC_LIBRARY ${CUDD_LIB_DIR}/libcudd${STATIC_EXT}) set(CUDD_STATIC_LIBRARY ${CUDD_LIB_DIR}/libcudd${STATIC_EXT})
set(CUDD_VERSION_STRING 3.0.0) set(CUDD_VERSION_STRING 3.0.0)
list(APPEND STORM_LINK_LIBRARIES ${CUDD_SHARED_LIBRARY})
if(BUILD_SHARED_LIBS)
list(APPEND STORM_LINK_LIBRARIES ${CUDD_SHARED_LIBRARY})
else()
list(APPEND STORM_LINK_LIBRARIES ${CUDD_STATIC_LIBRARY})
endif()
add_dependencies(resources cudd3) add_dependencies(resources cudd3)
message(STATUS "Storm - Linking with CUDD ${CUDD_VERSION_STRING}.") message(STATUS "Storm - Linking with CUDD ${CUDD_VERSION_STRING}.")

2
resources/3rdparty/include_xerces.cmake

@ -20,7 +20,7 @@ if(USE_XERCES)
set(XERCES_ROOT ${STORM_3RDPARTY_BINARY_DIR}/xercesc-3.1.2) set(XERCES_ROOT ${STORM_3RDPARTY_BINARY_DIR}/xercesc-3.1.2)
set(XERCESC_INCLUDE ${XERCES_ROOT}/include) set(XERCESC_INCLUDE ${XERCES_ROOT}/include)
set(XERCES_LIBRARY_PATH ${XERCES_ROOT}/lib)
set(XERCES_LIBRARY_PATH ${XERCES_LIB_DIR})
if(BUILD_STATIC) if(BUILD_STATIC)
set(XERCESC_LIBRARIES ${XERCES_LIBRARY_PATH}/libxerces-c${STATIC_EXT}) set(XERCESC_LIBRARIES ${XERCES_LIBRARY_PATH}/libxerces-c${STATIC_EXT})

2
src/CMakeLists.txt

@ -1,6 +1,4 @@
add_subdirectory(storm) add_subdirectory(storm)
add_subdirectory(storm-pgcl) add_subdirectory(storm-pgcl)
add_subdirectory(storm-pgcl-cli) add_subdirectory(storm-pgcl-cli)
add_subdirectory(test) add_subdirectory(test)
Loading…
Cancel
Save