Browse Source

Merge branch 'master' of https://sselab.de/lab9/private/git/storm

tempestpy_adaptions
gereon 12 years ago
parent
commit
daff71bf0f
  1. 17
      CMakeLists.txt
  2. 3109
      resources/cmake/cotire.cmake
  3. 8
      src/utility/ConstTemplates.h

17
CMakeLists.txt

@ -1,4 +1,4 @@
cmake_minimum_required (VERSION 2.6)
cmake_minimum_required (VERSION 2.8.6)
# Set project name # Set project name
project (storm CXX C) project (storm CXX C)
@ -152,6 +152,14 @@ add_executable(storm-tests ${STORM_TEST_SOURCES} ${STORM_TEST_HEADERS})
target_link_libraries(storm ${Boost_LIBRARIES}) target_link_libraries(storm ${Boost_LIBRARIES})
target_link_libraries(storm-tests ${Boost_LIBRARIES}) target_link_libraries(storm-tests ${Boost_LIBRARIES})
# Include Cotire for PCH Generation
set (CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/resources/cmake")
include(cotire)
cotire(storm)
target_link_libraries(storm_unity ${Boost_LIBRARIES})
#cotire(storm-tests)
# Add a target to generate API documentation with Doxygen # Add a target to generate API documentation with Doxygen
if(DOXYGEN_FOUND) if(DOXYGEN_FOUND)
set(CMAKE_DOXYGEN_OUTPUT_DIR "${CMAKE_CURRENT_BINARY_DIR}/doc") set(CMAKE_DOXYGEN_OUTPUT_DIR "${CMAKE_CURRENT_BINARY_DIR}/doc")
@ -179,18 +187,21 @@ endif(GTEST_INCLUDE_DIR)
if (LOG4CPLUS_INCLUDE_DIR) if (LOG4CPLUS_INCLUDE_DIR)
include_directories(${LOG4CPLUS_INCLUDE_DIR}) include_directories(${LOG4CPLUS_INCLUDE_DIR})
target_link_libraries(storm ${LOG4CPLUS_LIBRARIES}) target_link_libraries(storm ${LOG4CPLUS_LIBRARIES})
target_link_libraries(storm_unity ${LOG4CPLUS_LIBRARIES})
target_link_libraries(storm-tests ${LOG4CPLUS_LIBRARIES}) target_link_libraries(storm-tests ${LOG4CPLUS_LIBRARIES})
# On Linux, we have to link against librt # On Linux, we have to link against librt
if (UNIX AND NOT APPLE) if (UNIX AND NOT APPLE)
target_link_libraries(storm rt) target_link_libraries(storm rt)
target_link_libraries(storm_unity rt)
target_link_libraries(storm-tests rt) target_link_libraries(storm-tests rt)
endif(UNIX AND NOT APPLE) endif(UNIX AND NOT APPLE)
endif(LOG4CPLUS_INCLUDE_DIR) endif(LOG4CPLUS_INCLUDE_DIR)
if (THREADS_FOUND) if (THREADS_FOUND)
include_directories(${THREADS_INCLUDE_DIRS}) include_directories(${THREADS_INCLUDE_DIRS})
target_link_libraries (storm ${CMAKE_THREAD_LIBS_INIT})
target_link_libraries (storm-tests ${CMAKE_THREAD_LIBS_INIT})
target_link_libraries(storm ${CMAKE_THREAD_LIBS_INIT})
target_link_libraries(storm_unity ${CMAKE_THREAD_LIBS_INIT})
target_link_libraries(storm-tests ${CMAKE_THREAD_LIBS_INIT})
endif(THREADS_FOUND) endif(THREADS_FOUND)
# Configure a header file to pass some of the CMake settings to the source code # Configure a header file to pass some of the CMake settings to the source code

3109
resources/cmake/cotire.cmake
File diff suppressed because it is too large
View File

8
src/utility/ConstTemplates.h

@ -8,6 +8,14 @@
#ifndef STORM_UTILITY_CONSTTEMPLATES_H_ #ifndef STORM_UTILITY_CONSTTEMPLATES_H_
#define STORM_UTILITY_CONSTTEMPLATES_H_ #define STORM_UTILITY_CONSTTEMPLATES_H_
#ifdef max
# undef max
#endif
#ifdef min
# undef min
#endif
#include <limits> #include <limits>
namespace storm { namespace storm {

Loading…
Cancel
Save