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.

370 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. set(gtest_force_shared_crt ON)
  233. add_subdirectory("${PROJECT_SOURCE_DIR}/resources/3rdparty/gtest-1.7.0")
  234. include_directories("${PROJECT_SOURCE_DIR}/resources/3rdparty/gtest-1.7.0/include")
  235. enable_testing()
  236. target_link_libraries(storm-functional-tests gtest)
  237. target_link_libraries(storm-performance-tests gtest)
  238. add_test(NAME storm-functional-tests COMMAND storm-functional-tests)
  239. add_test(NAME storm-performance-tests COMMAND storm-performance-tests)
  240. #############################################################
  241. ##
  242. ## Log4CPlus
  243. ##
  244. #############################################################
  245. set(BUILD_SHARED_LIBS OFF CACHE BOOL "If TRUE, log4cplus is built as a shared library, otherwise as a static library")
  246. set(LOG4CPLUS_BUILD_TESTING NO)
  247. set(LOG4CPLUS_USE_UNICODE OFF)
  248. add_subdirectory("${PROJECT_SOURCE_DIR}/resources/3rdparty/log4cplus-1.1.2-rc2")
  249. include_directories("${PROJECT_SOURCE_DIR}/resources/3rdparty/log4cplus-1.1.2-rc2/include")
  250. target_link_libraries(storm log4cplusS)
  251. target_link_libraries(storm-functional-tests log4cplusS)
  252. target_link_libraries(storm-performance-tests log4cplusS)
  253. if (UNIX AND NOT APPLE)
  254. target_link_libraries(storm rt)
  255. if (STORM_USE_COTIRE)
  256. target_link_libraries(storm_unity rt)
  257. endif(STORM_USE_COTIRE)
  258. target_link_libraries(storm-functional-tests rt)
  259. target_link_libraries(storm-performance-tests rt)
  260. endif(UNIX AND NOT APPLE)
  261. if (MSVC)
  262. # Add the DebugHelper DLL
  263. set(CMAKE_CXX_STANDARD_LIBRARIES "${CMAKE_CXX_STANDARD_LIBRARIES} Dbghelp.lib")
  264. target_link_libraries(storm "Dbghelp.lib")
  265. target_link_libraries(storm-functional-tests "Dbghelp.lib")
  266. target_link_libraries(storm-performance-tests "Dbghelp.lib")
  267. endif(MSVC)
  268. if (USE_INTELTBB)
  269. target_link_libraries(storm tbb tbbmalloc)
  270. target_link_libraries(storm-functional-tests tbb tbbmalloc)
  271. target_link_libraries(storm-performance-tests tbb tbbmalloc)
  272. endif(USE_INTELTBB)
  273. # Print Cotire Usage Status
  274. message (STATUS "Using Cotire: ${STORM_USE_COTIRE}")
  275. if (STORM_USE_COTIRE)
  276. # Include Cotire for PCH Generation
  277. set (CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/resources/cmake")
  278. include(cotire)
  279. cotire(storm)
  280. target_link_libraries(storm_unity ${Boost_LIBRARIES})
  281. #cotire(storm-functional-tests)
  282. #cotire(storm-performance-tests)
  283. endif()
  284. # Link against libc++abi if requested. May be needed to build on Linux systems using clang.
  285. if (LINK_LIBCXXABI)
  286. message (STATUS "Linking against libc++abi.")
  287. target_link_libraries(storm "c++abi")
  288. target_link_libraries(storm-functional-tests "c++abi")
  289. target_link_libraries(storm-performance-tests "c++abi")
  290. endif(LINK_LIBCXXABI)
  291. # Add a target to generate API documentation with Doxygen
  292. if(DOXYGEN_FOUND)
  293. set(CMAKE_DOXYGEN_OUTPUT_DIR "${CMAKE_CURRENT_BINARY_DIR}/doc")
  294. string(REGEX REPLACE ";" " " CMAKE_DOXYGEN_INPUT_LIST "${PROJECT_SOURCE_DIR}/src")
  295. configure_file(${CMAKE_CURRENT_SOURCE_DIR}/doc/Doxyfile.in ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile @ONLY)
  296. add_custom_target(doc ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile COMMENT "Generating API documentation with Doxygen" VERBATIM)
  297. endif(DOXYGEN_FOUND)
  298. if (THREADS_FOUND)
  299. include_directories(${THREADS_INCLUDE_DIRS})
  300. target_link_libraries(storm ${CMAKE_THREAD_LIBS_INIT})
  301. if (STORM_USE_COTIRE)
  302. target_link_libraries(storm_unity ${CMAKE_THREAD_LIBS_INIT})
  303. endif(STORM_USE_COTIRE)
  304. target_link_libraries(storm-functional-tests ${CMAKE_THREAD_LIBS_INIT})
  305. target_link_libraries(storm-performance-tests ${CMAKE_THREAD_LIBS_INIT})
  306. endif(THREADS_FOUND)
  307. # Configure a header file to pass some of the CMake settings to the source code
  308. configure_file (
  309. "${PROJECT_SOURCE_DIR}/storm-config.h.in"
  310. "${PROJECT_BINARY_DIR}/storm-config.h"
  311. )
  312. 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)
  313. 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)
  314. 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)
  315. set (CPPLINT_ARGS --filter=-whitespace/tab,-whitespace/line_length,-legal/copyright,-readability/streams)
  316. add_custom_target(style python cpplint.py ${CPPLINT_ARGS} `find ./src/ -iname "*.h" -or -iname "*.cpp"`)