You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

369 lines
17 KiB

  1. cmake_minimum_required (VERSION 2.8.6)
  2. # Set project name
  3. project (storm CXX C)
  4. # Set the version number
  5. set (STORM_CPP_VERSION_MAJOR 1)
  6. set (STORM_CPP_VERSION_MINOR 0)
  7. # Set all Eigen references the version in the repository
  8. set(EIGEN3_INCLUDE_DIR ${PROJECT_SOURCE_DIR}/resources/3rdparty/eigen)
  9. message(STATUS "EIGEN3_INCLUDE_DIR is ${EIGEN3_INCLUDE_DIR}")
  10. # Set all Eigen references the version in the repository
  11. set(GMMXX_INCLUDE_DIR ${PROJECT_SOURCE_DIR}/resources/3rdparty/gmm-4.2/include)
  12. message(STATUS "GMMXX_INCLUDE_DIR is ${GMMXX_INCLUDE_DIR}")
  13. # Now define all available custom options
  14. option(DEBUG "Sets whether the DEBUG mode is used" ON)
  15. option(USE_POPCNT "Sets whether the popcnt instruction is going to be used." ON)
  16. option(USE_BOOST_STATIC_LIBRARIES "Sets whether the Boost libraries should be linked statically." ON)
  17. option(USE_INTELTBB "Sets whether the Intel TBB Extensions should be used." OFF)
  18. option(STORM_USE_COTIRE "Sets whether Cotire should be used (for building precompiled headers)." OFF)
  19. option(LINK_LIBCXXABI "Sets whether libc++abi should be linked" OFF)
  20. set(ADDITIONAL_INCLUDE_DIRS "" CACHE STRING "Additional directories added to the include directories.")
  21. set(ADDITIONAL_LINK_DIRS "" CACHE STRING "Additional directories added to the link directories.")
  22. set(CUSTOM_BOOST_ROOT "" CACHE STRING "A custom path to the Boost root directory.")
  23. # If the DEBUG option was turned on, we will target a debug version and a release version otherwise
  24. if (DEBUG)
  25. set (CMAKE_BUILD_TYPE "DEBUG")
  26. message(STATUS "Building DEBUG version.")
  27. else()
  28. set (CMAKE_BUILD_TYPE "RELEASE")
  29. message(STATUS "Building RELEASE version.")
  30. endif()
  31. message(STATUS "CMAKE_BUILD_TYPE: ${CMAKE_BUILD_TYPE}")
  32. message(STATUS "CMAKE_BUILD_TYPE (ENV): $ENV{CMAKE_BUILD_TYPE}")
  33. # Path to the no-strict-aliasing target
  34. set(CONVERSIONHELPER_TARGET "${PROJECT_SOURCE_DIR}/src/utility/ConversionHelper.cpp")
  35. if(CMAKE_COMPILER_IS_GNUCC)
  36. message(STATUS "Using GCC")
  37. # Set standard flags for GCC
  38. set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -funroll-loops")
  39. set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x -Wall -pedantic")
  40. # -Werror is atm removed as this gave some problems with existing code
  41. # May be re-set later
  42. # (Thomas Heinemann, 2012-12-21)
  43. # Turn on popcnt instruction if desired (yes by default)
  44. if (USE_POPCNT)
  45. set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mpopcnt")
  46. endif(USE_POPCNT)
  47. # Set the no-strict-aliasing target for GCC
  48. set_source_files_properties(${CONVERSIONHELPER_TARGET} PROPERTIES COMPILE_FLAGS " -fno-strict-aliasing ")
  49. elseif(MSVC)
  50. message(STATUS "Using MSVC")
  51. # required for GMM to compile, ugly error directive in their code
  52. add_definitions(/D_SCL_SECURE_NO_DEPRECATE /D_CRT_SECURE_NO_WARNINGS)
  53. # required as the PRCTL Parser bloats object files (COFF) beyond their maximum size (see http://msdn.microsoft.com/en-us/library/8578y171(v=vs.110).aspx)
  54. add_definitions(/bigobj)
  55. # required by GTest and PrismGrammar::createIntegerVariable
  56. add_definitions(/D_VARIADIC_MAX=10)
  57. # MSVC does not do strict-aliasing, so no option needed
  58. else(CLANG)
  59. message(STATUS "Using CLANG")
  60. # As CLANG is not set as a variable, we need to set it in case we have not matched another compiler.
  61. set (CLANG ON)
  62. # Set standard flags for clang
  63. set (CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -funroll-loops -O3")
  64. if(UNIX AND NOT APPLE)
  65. set(CLANG_STDLIB libstdc++)
  66. else()
  67. set(CLANG_STDLIB libc++)
  68. # Disable Cotire
  69. set(STORM_USE_COTIRE OFF)
  70. # Set up some Xcode specific settings
  71. set(CMAKE_XCODE_ATTRIBUTE_CLANG_CXX_LANGUAGE_STANDARD "c++11")
  72. set(CMAKE_XCODE_ATTRIBUTE_CLANG_CXX_LIBRARY "libc++")
  73. endif()
  74. set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -stdlib=${CLANG_STDLIB} -Wall -pedantic -Wno-unused-variable -DBOOST_RESULT_OF_USE_TR1 -DBOOST_NO_DECLTYPE")
  75. set (CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -g")
  76. # Turn on popcnt instruction if desired (yes by default)
  77. if (USE_POPCNT)
  78. set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mpopcnt")
  79. endif(USE_POPCNT)
  80. # Set the no-strict-aliasing target for Clang
  81. set_source_files_properties(${CONVERSIONHELPER_TARGET} PROPERTIES COMPILE_FLAGS " -fno-strict-aliasing ")
  82. endif()
  83. # Add the binary folder to the search path for include files so that we will find storm-config.h
  84. include_directories("${PROJECT_BINARY_DIR}")
  85. # Base path for test files
  86. set(STORM_CPP_TESTS_BASE_PATH ${PROJECT_SOURCE_DIR}/test)
  87. message(STATUS "STORM_CPP_TESTS_BASE_PATH is ${STORM_CPP_TESTS_BASE_PATH}")
  88. # Main Sources
  89. file(GLOB_RECURSE STORM_HEADERS ${PROJECT_SOURCE_DIR}/src/*.h)
  90. file(GLOB_RECURSE STORM_SOURCES_WITHOUT_MAIN ${PROJECT_SOURCE_DIR}/src/*/*.cpp)
  91. file(GLOB_RECURSE STORM_MAIN_FILE ${PROJECT_SOURCE_DIR}/src/storm.cpp)
  92. set(STORM_SOURCES "${STORM_SOURCES_WITHOUT_MAIN};${STORM_MAIN_FILE}")
  93. file(GLOB_RECURSE STORM_ADAPTERS_FILES ${PROJECT_SOURCE_DIR}/src/adapters/*.h ${PROJECT_SOURCE_DIR}/src/adapters/*.cpp)
  94. file(GLOB_RECURSE STORM_EXCEPTIONS_FILES ${PROJECT_SOURCE_DIR}/src/exceptions/*.h ${PROJECT_SOURCE_DIR}/src/exceptions/*.cpp)
  95. file(GLOB STORM_FORMULA_FILES ${PROJECT_SOURCE_DIR}/src/formula/*.h ${PROJECT_SOURCE_DIR}/src/formula/*.cpp)
  96. file(GLOB_RECURSE STORM_FORMULA_ABSTRACT_FILES ${PROJECT_SOURCE_DIR}/src/formula/abstract/*.h ${PROJECT_SOURCE_DIR}/src/formula/abstract/*.cpp)
  97. file(GLOB_RECURSE STORM_FORMULA_CSL_FILES ${PROJECT_SOURCE_DIR}/src/formula/Csl/*.h ${PROJECT_SOURCE_DIR}/src/formula/Csl/*.cpp)
  98. file(GLOB_RECURSE STORM_FORMULA_LTL_FILES ${PROJECT_SOURCE_DIR}/src/formula/Ltl/*.h ${PROJECT_SOURCE_DIR}/src/formula/Ltl/*.cpp)
  99. file(GLOB_RECURSE STORM_FORMULA_PRCTL_FILES ${PROJECT_SOURCE_DIR}/src/formula/Prctl/*.h ${PROJECT_SOURCE_DIR}/src/formula/Prctl/*.cpp)
  100. file(GLOB_RECURSE STORM_MODELCHECKER_FILES ${PROJECT_SOURCE_DIR}/src/modelchecker/*.h ${PROJECT_SOURCE_DIR}/src/modelchecker/*.cpp)
  101. file(GLOB_RECURSE STORM_MODELS_FILES ${PROJECT_SOURCE_DIR}/src/models/*.h ${PROJECT_SOURCE_DIR}/src/models/*.cpp)
  102. file(GLOB STORM_PARSER_FILES ${PROJECT_SOURCE_DIR}/src/parser/*.h ${PROJECT_SOURCE_DIR}/src/parser/*.cpp)
  103. file(GLOB_RECURSE STORM_PARSER_PRISMPARSER_FILES ${PROJECT_SOURCE_DIR}/src/parser/prismparser/*.h ${PROJECT_SOURCE_DIR}/src/parser/prismparser/*.cpp)
  104. file(GLOB_RECURSE STORM_SETTINGS_FILES ${PROJECT_SOURCE_DIR}/src/settings/*.h ${PROJECT_SOURCE_DIR}/src/settings/*.cpp)
  105. file(GLOB_RECURSE STORM_SOLVER_FILES ${PROJECT_SOURCE_DIR}/src/solver/*.h ${PROJECT_SOURCE_DIR}/src/solver/*.cpp)
  106. file(GLOB_RECURSE STORM_STORAGE_FILES ${PROJECT_SOURCE_DIR}/src/storage/*.h ${PROJECT_SOURCE_DIR}/src/storage/*.cpp)
  107. file(GLOB_RECURSE STORM_UTILITY_FILES ${PROJECT_SOURCE_DIR}/src/utility/*.h ${PROJECT_SOURCE_DIR}/src/utility/*.cpp)
  108. file(GLOB STORM_IR_FILES ${PROJECT_SOURCE_DIR}/src/ir/*.h ${PROJECT_SOURCE_DIR}/src/ir/*.cpp)
  109. file(GLOB_RECURSE STORM_IR_EXPRESSIONS_FILES ${PROJECT_SOURCE_DIR}/src/ir/expressions/*.h ${PROJECT_SOURCE_DIR}/src/ir/expressions/*.cpp)
  110. # Test Sources
  111. # Note that the tests also need the source files, except for the main file
  112. file(GLOB_RECURSE STORM_FUNCTIONAL_TEST_FILES ${STORM_CPP_TESTS_BASE_PATH}/functional/*.h ${STORM_CPP_TESTS_BASE_PATH}/functional/*.cpp)
  113. file(GLOB_RECURSE STORM_PERFORMANCE_TEST_FILES ${STORM_CPP_TESTS_BASE_PATH}/performance/*.h ${STORM_CPP_TESTS_BASE_PATH}/performance/*.cpp)
  114. # Group the headers and sources
  115. source_group(main FILES ${STORM_MAIN_FILE})
  116. source_group(adapters FILES ${STORM_ADAPTERS_FILES})
  117. source_group(exceptions FILES ${STORM_EXCEPTIONS_FILES})
  118. source_group(formula FILES ${STORM_FORMULA_FILES})
  119. source_group(formula\\abstract FILES ${STORM_FORMULA_ABSTRACT_FILES})
  120. source_group(formula\\csl FILES ${STORM_FORMULA_CSL_FILES})
  121. source_group(formula\\ltl FILES ${STORM_FORMULA_LTL_FILES})
  122. source_group(formula\\prctl FILES ${STORM_FORMULA_PRCTL_FILES})
  123. source_group(modelchecker FILES ${STORM_MODELCHECKER_FILES})
  124. source_group(models FILES ${STORM_MODELS_FILES})
  125. source_group(parser FILES ${STORM_PARSER_FILES})
  126. source_group(parser\\prismparser FILES ${STORM_PARSER_PRISMPARSER_FILES})
  127. source_group(settings FILES ${STORM_SETTINGS_FILES})
  128. source_group(solver FILES ${STORM_SOLVER_FILES})
  129. source_group(storage FILES ${STORM_STORAGE_FILES})
  130. source_group(utility FILES ${STORM_UTILITY_FILES})
  131. source_group(ir FILES ${STORM_IR_FILES})
  132. source_group(ir\\expressions FILES ${STORM_IR_EXPRESSIONS_FILES})
  133. source_group(functional-test FILES ${STORM_FUNCTIONAL_TEST_FILES})
  134. source_group(performance-test FILES ${STORM_PERFORMANCE_TEST_FILES})
  135. # Add base folder for better inclusion paths
  136. include_directories("${PROJECT_SOURCE_DIR}")
  137. include_directories("${PROJECT_SOURCE_DIR}/src")
  138. # Preset pathes for Intel TBB to internal copy in /resources/3rdParty/tbb41_20130314_mergedWindowsLinuxMacOSX
  139. set(TBB_INSTALL_DIR "${PROJECT_SOURCE_DIR}/resources/3rdparty/tbb41_20130314_merged-win-lin-mac/")
  140. if(MSVC)
  141. set(ENV{TBB_ARCH_PLATFORM} "intel64/vc11")
  142. elseif(CMAKE_COMPILER_IS_GNUCC)
  143. set(ENV{TBB_ARCH_PLATFORM} "intel64/gcc4.4")
  144. else(CLANG)
  145. set(ENV{TBB_ARCH_PLATFORM} "intel64/clang3.2")
  146. endif()
  147. # Add the resources/cmake folder to Module Search Path for FindTBB.cmake
  148. set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${PROJECT_SOURCE_DIR}/resources/cmake/")
  149. # Set required external packages
  150. find_package(Threads REQUIRED)
  151. find_package(Doxygen REQUIRED)
  152. set(Boost_USE_STATIC_LIBS ON)
  153. set(Boost_USE_MULTITHREADED ON)
  154. set(Boost_USE_STATIC_RUNTIME OFF)
  155. # If a custom boost root directory was specified, we set the corresponding hint for the script to find it.
  156. if(CUSTOM_BOOST_ROOT)
  157. set(BOOST_ROOT "${CUSTOM_BOOST_ROOT}")
  158. endif(CUSTOM_BOOST_ROOT)
  159. find_package(Boost REQUIRED COMPONENTS program_options)
  160. find_package(TBB)
  161. if(Boost_FOUND)
  162. if ((NOT Boost_LIBRARY_DIRS) OR ("${Boost_LIBRARY_DIRS}" STREQUAL ""))
  163. set(Boost_LIBRARY_DIRS "${Boost_INCLUDE_DIRS}/stage/lib")
  164. endif ()
  165. message(STATUS "BOOST_INCLUDE_DIRS is ${Boost_INCLUDE_DIRS}")
  166. message(STATUS "BOOST_LIBRARY_DIRS is ${Boost_LIBRARY_DIRS}")
  167. include_directories(${Boost_INCLUDE_DIRS})
  168. link_directories(${Boost_LIBRARY_DIRS})
  169. endif(Boost_FOUND)
  170. # Intels Thread Building Blocks
  171. if (TBB_FOUND)
  172. message(STATUS "Found TBB with Interface Version ${TBB_INTERFACE_VERSION}")
  173. if(USE_INTELTBB)
  174. add_definitions(-DGMM_USE_TBB)
  175. endif()
  176. include_directories(${TBB_INCLUDE_DIRS})
  177. link_directories(${TBB_LIBRARY_DIRS})
  178. endif(TBB_FOUND)
  179. # Add Eigen to the included directories
  180. include_directories(${EIGEN3_INCLUDE_DIR})
  181. # Add GMMXX to the included directories
  182. include_directories(${GMMXX_INCLUDE_DIR})
  183. # Add custom additional include or link directories
  184. if (ADDITIONAL_INCLUDE_DIRS)
  185. message(STATUS "Using additional include directories ${ADDITIONAL_INCLUDE_DIRS}")
  186. include_directories(${ADDITIONAL_INCLUDE_DIRS})
  187. endif(ADDITIONAL_INCLUDE_DIRS)
  188. if (ADDITIONAL_LINK_DIRS)
  189. message(STATUS "Using additional link directories ${ADDITIONAL_LINK_DIRS}")
  190. link_directories(${ADDITIONAL_LINK_DIRS})
  191. endif(ADDITIONAL_LINK_DIRS)
  192. # Add the executables
  193. # Must be created *after* Boost was added because of LINK_DIRECTORIES
  194. add_executable(storm ${STORM_SOURCES} ${STORM_HEADERS})
  195. add_executable(storm-functional-tests ${STORM_FUNCTIONAL_TEST_FILES} ${STORM_SOURCES_WITHOUT_MAIN} ${STORM_HEADERS})
  196. add_executable(storm-performance-tests ${STORM_PERFORMANCE_TEST_FILES} ${STORM_SOURCES_WITHOUT_MAIN} ${STORM_HEADERS})
  197. # Add target link deps for Boost program options
  198. target_link_libraries(storm ${Boost_LIBRARIES})
  199. target_link_libraries(storm-functional-tests ${Boost_LIBRARIES})
  200. target_link_libraries(storm-performance-tests ${Boost_LIBRARIES})
  201. #############################################################
  202. ##
  203. ## CUDD
  204. ##
  205. #############################################################
  206. add_subdirectory("${PROJECT_SOURCE_DIR}/resources/3rdparty/cudd-2.5.0")
  207. include_directories("${PROJECT_SOURCE_DIR}/resources/3rdparty/cudd-2.5.0/src/cudd")
  208. include_directories("${PROJECT_SOURCE_DIR}/resources/3rdparty/cudd-2.5.0/src/epd")
  209. include_directories("${PROJECT_SOURCE_DIR}/resources/3rdparty/cudd-2.5.0/src/mtr")
  210. include_directories("${PROJECT_SOURCE_DIR}/resources/3rdparty/cudd-2.5.0/src/nanotrav")
  211. include_directories("${PROJECT_SOURCE_DIR}/resources/3rdparty/cudd-2.5.0/src/obj")
  212. include_directories("${PROJECT_SOURCE_DIR}/resources/3rdparty/cudd-2.5.0/src/st")
  213. include_directories("${PROJECT_SOURCE_DIR}/resources/3rdparty/cudd-2.5.0/src/util")
  214. target_link_libraries(storm cudd)
  215. target_link_libraries(storm-functional-tests cudd)
  216. target_link_libraries(storm-performance-tests cudd)
  217. #############################################################
  218. ##
  219. ## LTL2DSTAR
  220. ##
  221. #############################################################
  222. add_subdirectory("${PROJECT_SOURCE_DIR}/resources/3rdparty/ltl2dstar-0.5.1")
  223. include_directories("${PROJECT_SOURCE_DIR}/resources/3rdparty/ltl2dstar-0.5.1/src")
  224. target_link_libraries(storm ltl2dstar)
  225. target_link_libraries(storm-functional-tests ltl2dstar)
  226. target_link_libraries(storm-performance-tests ltl2dstar)
  227. #############################################################
  228. ##
  229. ## Google Test gtest
  230. ##
  231. #############################################################
  232. add_subdirectory("${PROJECT_SOURCE_DIR}/resources/3rdparty/gtest-1.7.0")
  233. include_directories("${PROJECT_SOURCE_DIR}/resources/3rdparty/gtest-1.7.0/include")
  234. enable_testing()
  235. target_link_libraries(storm-functional-tests gtest)
  236. target_link_libraries(storm-performance-tests gtest)
  237. add_test(NAME storm-functional-tests COMMAND storm-functional-tests)
  238. add_test(NAME storm-performance-tests COMMAND storm-performance-tests)
  239. #############################################################
  240. ##
  241. ## Log4CPlus
  242. ##
  243. #############################################################
  244. set(BUILD_SHARED_LIBS OFF CACHE BOOL "If TRUE, log4cplus is built as a shared library, otherwise as a static library")
  245. set(LOG4CPLUS_BUILD_TESTING NO)
  246. set(LOG4CPLUS_USE_UNICODE OFF)
  247. add_subdirectory("${PROJECT_SOURCE_DIR}/resources/3rdparty/log4cplus-1.1.2-rc2")
  248. include_directories("${PROJECT_SOURCE_DIR}/resources/3rdparty/log4cplus-1.1.2-rc2/include")
  249. target_link_libraries(storm log4cplusS)
  250. target_link_libraries(storm-functional-tests log4cplusS)
  251. target_link_libraries(storm-performance-tests log4cplusS)
  252. if (UNIX AND NOT APPLE)
  253. target_link_libraries(storm rt)
  254. if (STORM_USE_COTIRE)
  255. target_link_libraries(storm_unity rt)
  256. endif(STORM_USE_COTIRE)
  257. target_link_libraries(storm-functional-tests rt)
  258. target_link_libraries(storm-performance-tests rt)
  259. endif(UNIX AND NOT APPLE)
  260. if (MSVC)
  261. # Add the DebugHelper DLL
  262. set(CMAKE_CXX_STANDARD_LIBRARIES "${CMAKE_CXX_STANDARD_LIBRARIES} Dbghelp.lib")
  263. target_link_libraries(storm "Dbghelp.lib")
  264. target_link_libraries(storm-functional-tests "Dbghelp.lib")
  265. target_link_libraries(storm-performance-tests "Dbghelp.lib")
  266. endif(MSVC)
  267. if (USE_INTELTBB)
  268. target_link_libraries(storm tbb tbbmalloc)
  269. target_link_libraries(storm-functional-tests tbb tbbmalloc)
  270. target_link_libraries(storm-performance-tests tbb tbbmalloc)
  271. endif(USE_INTELTBB)
  272. # Print Cotire Usage Status
  273. message (STATUS "Using Cotire: ${STORM_USE_COTIRE}")
  274. if (STORM_USE_COTIRE)
  275. # Include Cotire for PCH Generation
  276. set (CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/resources/cmake")
  277. include(cotire)
  278. cotire(storm)
  279. target_link_libraries(storm_unity ${Boost_LIBRARIES})
  280. #cotire(storm-functional-tests)
  281. #cotire(storm-performance-tests)
  282. endif()
  283. # Link against libc++abi if requested. May be needed to build on Linux systems using clang.
  284. if (LINK_LIBCXXABI)
  285. message (STATUS "Linking against libc++abi.")
  286. target_link_libraries(storm "c++abi")
  287. target_link_libraries(storm-functional-tests "c++abi")
  288. target_link_libraries(storm-performance-tests "c++abi")
  289. endif(LINK_LIBCXXABI)
  290. # Add a target to generate API documentation with Doxygen
  291. if(DOXYGEN_FOUND)
  292. set(CMAKE_DOXYGEN_OUTPUT_DIR "${CMAKE_CURRENT_BINARY_DIR}/doc")
  293. string(REGEX REPLACE ";" " " CMAKE_DOXYGEN_INPUT_LIST "${PROJECT_SOURCE_DIR}/src")
  294. configure_file(${CMAKE_CURRENT_SOURCE_DIR}/doc/Doxyfile.in ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile @ONLY)
  295. add_custom_target(doc ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile COMMENT "Generating API documentation with Doxygen" VERBATIM)
  296. endif(DOXYGEN_FOUND)
  297. if (THREADS_FOUND)
  298. include_directories(${THREADS_INCLUDE_DIRS})
  299. target_link_libraries(storm ${CMAKE_THREAD_LIBS_INIT})
  300. if (STORM_USE_COTIRE)
  301. target_link_libraries(storm_unity ${CMAKE_THREAD_LIBS_INIT})
  302. endif(STORM_USE_COTIRE)
  303. target_link_libraries(storm-functional-tests ${CMAKE_THREAD_LIBS_INIT})
  304. target_link_libraries(storm-performance-tests ${CMAKE_THREAD_LIBS_INIT})
  305. endif(THREADS_FOUND)
  306. # Configure a header file to pass some of the CMake settings to the source code
  307. configure_file (
  308. "${PROJECT_SOURCE_DIR}/storm-config.h.in"
  309. "${PROJECT_BINARY_DIR}/storm-config.h"
  310. )
  311. add_custom_target(memcheck valgrind --leak-check=full --show-reachable=yes ${PROJECT_BINARY_DIR}/storm -v --fix-deadlocks ${PROJECT_SOURCE_DIR}/examples/dtmc/crowds/crowds5_5.tra examples/dtmc/crowds/crowds5_5.lab DEPENDS storm)
  312. add_custom_target(memcheck-functional-tests valgrind --leak-check=full --show-reachable=yes ${PROJECT_BINARY_DIR}/storm-functional-tests -v --fix-deadlocks DEPENDS storm-functional-tests)
  313. add_custom_target(memcheck-performance-tests valgrind --leak-check=full --show-reachable=yes ${PROJECT_BINARY_DIR}/storm-performance-tests -v --fix-deadlocks DEPENDS storm-performance-tests)
  314. set (CPPLINT_ARGS --filter=-whitespace/tab,-whitespace/line_length,-legal/copyright,-readability/streams)
  315. add_custom_target(style python cpplint.py ${CPPLINT_ARGS} `find ./src/ -iname "*.h" -or -iname "*.cpp"`)