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.

777 lines
34 KiB

  1. cmake_minimum_required (VERSION 2.8.6)
  2. # Set project name
  3. project (storm CXX C)
  4. # Add base folder for better inclusion paths
  5. include_directories("${PROJECT_SOURCE_DIR}")
  6. include_directories("${PROJECT_SOURCE_DIR}/src")
  7. # Add the version of Eigen3 in the repository to the include pathes
  8. set(EIGEN3_INCLUDE_DIR "${PROJECT_SOURCE_DIR}/resources/3rdparty/eigen")
  9. include_directories(${EIGEN3_INCLUDE_DIR})
  10. # Add the version of GMM in the repository to the include pathes
  11. set(GMMXX_INCLUDE_DIR "${PROJECT_SOURCE_DIR}/resources/3rdparty/gmm-5.0/include")
  12. include_directories(${GMMXX_INCLUDE_DIR})
  13. #############################################################
  14. ##
  15. ## CMake options of StoRM
  16. ##
  17. #############################################################
  18. option(STORM_DEBUG "Sets whether the DEBUG mode is used" ON)
  19. option(STORM_USE_POPCNT "Sets whether the popcnt instruction is going to be used." ON)
  20. option(USE_BOOST_STATIC_LIBRARIES "Sets whether the Boost libraries should be linked statically." ON)
  21. option(STORM_USE_INTELTBB "Sets whether the Intel TBB libraries should be used." OFF)
  22. option(STORM_USE_COTIRE "Sets whether Cotire should be used (for building precompiled headers)." OFF)
  23. option(LINK_LIBCXXABI "Sets whether libc++abi should be linked." OFF)
  24. option(USE_LIBCXX "Sets whether the standard library is libc++." OFF)
  25. option(USE_CARL "Sets whether carl should be included." ON)
  26. option(FORCE_COLOR "Force color output" OFF)
  27. set(GUROBI_ROOT "" CACHE STRING "A hint to the root directory of Gurobi (optional).")
  28. set(Z3_ROOT "" CACHE STRING "A hint to the root directory of Z3 (optional).")
  29. set(CUDA_ROOT "" CACHE STRING "The root directory of CUDA.")
  30. set(MSAT_ROOT "" CACHE STRING "The root directory of MathSAT (if available).")
  31. set(ADDITIONAL_INCLUDE_DIRS "" CACHE STRING "Additional directories added to the include directories.")
  32. set(ADDITIONAL_LINK_DIRS "" CACHE STRING "Additional directories added to the link directories.")
  33. set(CUSTOM_BOOST_ROOT "" CACHE STRING "A custom path to the Boost root directory.")
  34. #############################################################
  35. ##
  36. ## Inclusion of required libraries
  37. ##
  38. #############################################################
  39. # Add the resources/cmake folder to Module Search Path for FindTBB.cmake
  40. set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${PROJECT_SOURCE_DIR}/resources/cmake/")
  41. # Boost Option variables
  42. set(Boost_USE_STATIC_LIBS ON)
  43. set(Boost_USE_MULTITHREADED ON)
  44. set(Boost_USE_STATIC_RUNTIME OFF)
  45. # If a custom boost root directory was specified, we set the corresponding hint for the script to find it.
  46. if(CUSTOM_BOOST_ROOT)
  47. message(STATUS "StoRM - Using Boost from CUSTOM_BOOST_ROOT located at ${CUSTOM_BOOST_ROOT}")
  48. set(BOOST_ROOT "${CUSTOM_BOOST_ROOT}")
  49. endif(CUSTOM_BOOST_ROOT)
  50. set(TBB_INSTALL_DIR "${PROJECT_SOURCE_DIR}/resources/3rdparty/tbb42_20140122_merged-win-lin-mac")
  51. find_package(Boost REQUIRED)
  52. find_package(Doxygen REQUIRED)
  53. find_package(Gurobi)
  54. find_package(TBB)
  55. find_package(Threads REQUIRED)
  56. find_package(GMP)
  57. find_package(Z3 QUIET)
  58. # If the DEBUG option was turned on, we will target a debug version and a release version otherwise.
  59. if (STORM_DEBUG)
  60. set (CMAKE_BUILD_TYPE "DEBUG")
  61. else()
  62. set (CMAKE_BUILD_TYPE "RELEASE")
  63. endif()
  64. message(STATUS "StoRM - Building ${CMAKE_BUILD_TYPE} version.")
  65. if ("${GUROBI_ROOT}" STREQUAL "" AND NOT GUROBI_FOUND)
  66. set(ENABLE_GUROBI OFF)
  67. else()
  68. set(ENABLE_GUROBI ON)
  69. endif()
  70. if ("${CUDA_ROOT}" STREQUAL "")
  71. set(ENABLE_CUDA OFF)
  72. else()
  73. set(ENABLE_CUDA ON)
  74. endif()
  75. if ("${MSAT_ROOT}" STREQUAL "")
  76. set(ENABLE_MSAT OFF)
  77. else()
  78. set(ENABLE_MSAT ON)
  79. endif()
  80. if(USE_CARL)
  81. find_package(carl QUIET)
  82. if(carl_FOUND)
  83. set(STORM_HAVE_CARL ON)
  84. endif()
  85. find_package(smtrat QUIET)
  86. if(smtrat_FOUND)
  87. set(STORM_HAVE_SMTRAT ON)
  88. endif()
  89. endif()
  90. message(STATUS "StoRM - CMAKE_BUILD_TYPE: ${CMAKE_BUILD_TYPE}")
  91. message(STATUS "StoRM - CMAKE_BUILD_TYPE (ENV): $ENV{CMAKE_BUILD_TYPE}")
  92. #############################################################
  93. ##
  94. ## Compiler specific settings and definitions
  95. ##
  96. #############################################################
  97. # Path to the no-strict-aliasing target
  98. set(CONVERSIONHELPER_TARGET "${PROJECT_SOURCE_DIR}/src/utility/ConversionHelper.cpp")
  99. if(CMAKE_COMPILER_IS_GNUCC)
  100. set(STORM_COMPILED_BY "GCC")
  101. # Set standard flags for GCC
  102. set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -funroll-loops")
  103. set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -funroll-loops")
  104. add_definitions(-DBOOST_RESULT_OF_USE_DECLTYPE)
  105. set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14 -Wall -pedantic -Wno-deprecated-declarations -Wno-unused-local-typedefs")
  106. set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -pedantic -Wno-deprecated-declarations")
  107. # Turn on popcnt instruction if desired (yes by default)
  108. if (STORM_USE_POPCNT)
  109. set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mpopcnt")
  110. endif(STORM_USE_POPCNT)
  111. # Set the no-strict-aliasing target for GCC
  112. set_source_files_properties(${CONVERSIONHELPER_TARGET} PROPERTIES COMPILE_FLAGS " -fno-strict-aliasing")
  113. elseif(MSVC)
  114. set(STORM_COMPILED_BY "MSVC")
  115. # required for GMM to compile, ugly error directive in their code
  116. add_definitions(/D_SCL_SECURE_NO_DEPRECATE /D_CRT_SECURE_NO_WARNINGS)
  117. # 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)
  118. add_definitions(/bigobj)
  119. # required by GTest and PrismGrammar::createIntegerVariable
  120. add_definitions(/D_VARIADIC_MAX=10)
  121. # Windows.h breaks GMM in gmm_except.h because of its macro definition for min and max
  122. add_definitions(/DNOMINMAX)
  123. # Boost Defs, required for using boost's transform iterator
  124. add_definitions(/DBOOST_RESULT_OF_USE_DECLTYPE)
  125. # since nobody cares at the moment
  126. add_definitions(/wd4250)
  127. # MSVC does not do strict-aliasing, so no option needed
  128. else(CLANG)
  129. set(STORM_COMPILED_BY "Clang (LLVM)")
  130. # As CLANG is not set as a variable, we need to set it in case we have not matched another compiler.
  131. set (CLANG ON)
  132. # Set standard flags for clang
  133. set (CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -funroll-loops -O3")
  134. if(UNIX AND NOT APPLE AND NOT USE_LIBCXX)
  135. set(CLANG_STDLIB libstdc++)
  136. message(STATUS "StoRM - Linking against libstdc++")
  137. else()
  138. set(CLANG_STDLIB libc++)
  139. message(STATUS "StoRM - Linking against libc++")
  140. # Disable Cotire
  141. set(STORM_USE_COTIRE OFF)
  142. # Set up some Xcode specific settings
  143. set(CMAKE_XCODE_ATTRIBUTE_CLANG_CXX_LANGUAGE_STANDARD "c++11")
  144. set(CMAKE_XCODE_ATTRIBUTE_CLANG_CXX_LIBRARY "libc++")
  145. endif()
  146. add_definitions(-DBOOST_RESULT_OF_USE_DECLTYPE)
  147. set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14 -stdlib=${CLANG_STDLIB} -Wall -pedantic -Wno-newline-eof -Wno-mismatched-tags -ftemplate-depth=1024")
  148. set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -pedantic")
  149. if(FORCE_COLOR)
  150. set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fcolor-diagnostics")
  151. endif()
  152. # Turn on popcnt instruction if desired (yes by default)
  153. if (STORM_USE_POPCNT)
  154. set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mpopcnt")
  155. endif(STORM_USE_POPCNT)
  156. # Set the no-strict-aliasing target for Clang
  157. set_source_files_properties(${CONVERSIONHELPER_TARGET} PROPERTIES COMPILE_FLAGS " -fno-strict-aliasing ")
  158. endif()
  159. message(STATUS "StoRM - Using Compiler Configuration: ${STORM_COMPILED_BY}")
  160. #############################################################
  161. ##
  162. ## CMake-generated Config File for StoRM
  163. ##
  164. #############################################################
  165. #
  166. # Make a version file containing the current version from git.
  167. #
  168. include(GetGitRevisionDescription)
  169. git_describe_checkout(STORM_GIT_VERSION_STRING)
  170. message(STATUS "STORM_GIT_VERSION_STRING: ${STORM_GIT_VERSION_STRING}")
  171. # Parse the git Tag into variables
  172. string(REGEX REPLACE "^([0-9]+)\\..*" "\\1" STORM_CPP_VERSION_MAJOR "${STORM_GIT_VERSION_STRING}")
  173. string(REGEX REPLACE "^[0-9]+\\.([0-9]+).*" "\\1" STORM_CPP_VERSION_MINOR "${STORM_GIT_VERSION_STRING}")
  174. string(REGEX REPLACE "^[0-9]+\\.[0-9]+\\.([0-9]+).*" "\\1" STORM_CPP_VERSION_PATCH "${STORM_GIT_VERSION_STRING}")
  175. string(REGEX REPLACE "^[0-9]+\\.[0-9]+\\.[0-9]+\\-([0-9]+)\\-.*" "\\1" STORM_CPP_VERSION_COMMITS_AHEAD "${STORM_GIT_VERSION_STRING}")
  176. string(REGEX REPLACE "^[0-9]+\\.[0-9]+\\.[0-9]+\\-[0-9]+\\-([a-z0-9]+).*" "\\1" STORM_CPP_VERSION_HASH "${STORM_GIT_VERSION_STRING}")
  177. string(REGEX REPLACE "^[0-9]+\\.[0-9]+\\.[0-9]+\\-[0-9]+\\-[a-z0-9]+\\-(.*)" "\\1" STORM_CPP_VERSION_APPENDIX "${STORM_GIT_VERSION_STRING}")
  178. if ("${STORM_CPP_VERSION_APPENDIX}" MATCHES "^.*dirty.*$")
  179. set(STORM_CPP_VERSION_DIRTY 1)
  180. else()
  181. set(STORM_CPP_VERSION_DIRTY 0)
  182. endif()
  183. message(STATUS "StoRM - Version information: ${STORM_CPP_VERSION_MAJOR}.${STORM_CPP_VERSION_MINOR}.${STORM_CPP_VERSION_PATCH} (${STORM_CPP_VERSION_COMMITS_AHEAD} commits ahead of Tag) build from ${STORM_CPP_VERSION_HASH} (Dirty: ${STORM_CPP_VERSION_DIRTY})")
  184. # Base path for test files
  185. set(STORM_CPP_TESTS_BASE_PATH "${PROJECT_SOURCE_DIR}/test")
  186. # Gurobi Defines
  187. set(STORM_HAVE_GUROBI ${ENABLE_GUROBI})
  188. # CUDA Defines
  189. if (ENABLE_CUDA)
  190. set(STORM_CPP_CUDA_DEF "define")
  191. else()
  192. set(STORM_CPP_CUDA_DEF "undef")
  193. endif()
  194. # glpk defines
  195. set(STORM_HAVE_GLPK 1)
  196. # CUDA Defines
  197. set(STORM_CPP_CUDAFORSTORM_DEF "undef")
  198. # Z3 Defines
  199. set(STORM_HAVE_Z3 ${Z3_FOUND})
  200. # MathSAT Defines
  201. set(STORM_HAVE_MSAT ${ENABLE_MSAT})
  202. # Intel TBB Defines
  203. if (TBB_FOUND AND STORM_USE_INTELTBB)
  204. set(STORM_CPP_INTELTBB_DEF "define")
  205. else()
  206. set(STORM_CPP_INTELTBB_DEF "undef")
  207. endif()
  208. # Configure a header file to pass some of the CMake settings to the source code
  209. configure_file (
  210. "${PROJECT_SOURCE_DIR}/storm-config.h.in"
  211. "${PROJECT_BINARY_DIR}/include/storm-config.h"
  212. )
  213. # Configure a header file to pass the storm version to the source code
  214. configure_file (
  215. "${PROJECT_SOURCE_DIR}/storm-version.cpp.in"
  216. "${PROJECT_BINARY_DIR}/src/utility/storm-version.cpp"
  217. )
  218. set(STORM_GENERATED_SOURCES "${PROJECT_BINARY_DIR}/src/utility/storm-version.cpp")
  219. # Add the binary dir include directory for storm-config.h
  220. include_directories("${PROJECT_BINARY_DIR}/include")
  221. #############################################################
  222. ##
  223. ## CUDA Library generation
  224. ##
  225. #############################################################
  226. if(ENABLE_CUDA)
  227. # Test for type alignment
  228. try_run(STORM_CUDA_RUN_RESULT_TYPEALIGNMENT STORM_CUDA_COMPILE_RESULT_TYPEALIGNMENT
  229. ${PROJECT_BINARY_DIR} "${PROJECT_SOURCE_DIR}/cuda/CMakeAlignmentCheck.cpp"
  230. COMPILE_OUTPUT_VARIABLE OUTPUT_TEST_VAR
  231. )
  232. if(NOT STORM_CUDA_COMPILE_RESULT_TYPEALIGNMENT)
  233. message(FATAL_ERROR "StoRM (CudaPlugin) - Could not test type alignment, there was an Error while compiling the file ${PROJECT_SOURCE_DIR}/cuda/CMakeAlignmentCheck.cpp: ${OUTPUT_TEST_VAR}")
  234. elseif(STORM_CUDA_RUN_RESULT_TYPEALIGNMENT EQUAL 0)
  235. message(STATUS "StoRM (CudaPlugin) - Result of Type Alignment Check: OK.")
  236. else()
  237. message(FATAL_ERROR "StoRM (CudaPlugin) - Result of Type Alignment Check: FAILED (Code ${STORM_CUDA_RUN_RESULT_TYPEALIGNMENT})")
  238. endif()
  239. # Test for Float 64bit Alignment
  240. try_run(STORM_CUDA_RUN_RESULT_FLOATALIGNMENT STORM_CUDA_COMPILE_RESULT_FLOATALIGNMENT
  241. ${PROJECT_BINARY_DIR} "${PROJECT_SOURCE_DIR}/cuda/CMakeFloatAlignmentCheck.cpp"
  242. COMPILE_OUTPUT_VARIABLE OUTPUT_TEST_VAR
  243. )
  244. if(NOT STORM_CUDA_COMPILE_RESULT_FLOATALIGNMENT)
  245. message(FATAL_ERROR "StoRM (CudaPlugin) - Could not test float type alignment, there was an Error while compiling the file ${PROJECT_SOURCE_DIR}/cuda/CMakeFloatAlignmentCheck.cpp: ${OUTPUT_TEST_VAR}")
  246. elseif(STORM_CUDA_RUN_RESULT_FLOATALIGNMENT EQUAL 2)
  247. message(STATUS "StoRM (CudaPlugin) - Result of Float Type Alignment Check: 64bit alignment active.")
  248. set(STORM_CUDAPLUGIN_FLOAT_64BIT_ALIGN_DEF "define")
  249. elseif(STORM_CUDA_RUN_RESULT_FLOATALIGNMENT EQUAL 3)
  250. message(STATUS "StoRM (CudaPlugin) - Result of Float Type Alignment Check: 64bit alignment disabled.")
  251. set(STORM_CUDAPLUGIN_FLOAT_64BIT_ALIGN_DEF "undef")
  252. else()
  253. message(FATAL_ERROR "StoRM (CudaPlugin) - Result of Float Type Alignment Check: FAILED (Code ${STORM_CUDA_RUN_RESULT_FLOATALIGNMENT})")
  254. endif()
  255. #
  256. # Make a version file containing the current version from git.
  257. #
  258. include(GetGitRevisionDescription)
  259. git_describe_checkout(STORM_GIT_VERSION_STRING)
  260. # Parse the git Tag into variables
  261. string(REGEX REPLACE "^([0-9]+)\\..*" "\\1" STORM_CUDAPLUGIN_VERSION_MAJOR "${STORM_GIT_VERSION_STRING}")
  262. string(REGEX REPLACE "^[0-9]+\\.([0-9]+).*" "\\1" STORM_CUDAPLUGIN_VERSION_MINOR "${STORM_GIT_VERSION_STRING}")
  263. string(REGEX REPLACE "^[0-9]+\\.[0-9]+\\.([0-9]+).*" "\\1" STORM_CUDAPLUGIN_VERSION_PATCH "${STORM_GIT_VERSION_STRING}")
  264. string(REGEX REPLACE "^[0-9]+\\.[0-9]+\\.[0-9]+\\-([0-9]+)\\-.*" "\\1" STORM_CUDAPLUGIN_VERSION_COMMITS_AHEAD "${STORM_GIT_VERSION_STRING}")
  265. string(REGEX REPLACE "^[0-9]+\\.[0-9]+\\.[0-9]+\\-[0-9]+\\-([a-z0-9]+).*" "\\1" STORM_CUDAPLUGIN_VERSION_HASH "${STORM_GIT_VERSION_STRING}")
  266. string(REGEX REPLACE "^[0-9]+\\.[0-9]+\\.[0-9]+\\-[0-9]+\\-[a-z0-9]+\\-(.*)" "\\1" STORM_CUDAPLUGIN_VERSION_APPENDIX "${STORM_GIT_VERSION_STRING}")
  267. if ("${STORM_CUDAPLUGIN_VERSION_APPENDIX}" MATCHES "^.*dirty.*$")
  268. set(STORM_CUDAPLUGIN_VERSION_DIRTY 1)
  269. else()
  270. set(STORM_CUDAPLUGIN_VERSION_DIRTY 0)
  271. endif()
  272. message(STATUS "StoRM (CudaPlugin) - Version information: ${STORM_CUDAPLUGIN_VERSION_MAJOR}.${STORM_CUDAPLUGIN_VERSION_MINOR}.${STORM_CUDAPLUGIN_VERSION_PATCH} (${STORM_CUDAPLUGIN_VERSION_COMMITS_AHEAD} commits ahead of Tag) build from ${STORM_CUDAPLUGIN_VERSION_HASH} (Dirty: ${STORM_CUDAPLUGIN_VERSION_DIRTY})")
  273. # Configure a header file to pass some of the CMake settings to the source code
  274. configure_file (
  275. "${PROJECT_SOURCE_DIR}/cuda/storm-cudaplugin-config.h.in"
  276. "${PROJECT_BINARY_DIR}/include/storm-cudaplugin-config.h"
  277. )
  278. #create library
  279. find_package(CUDA REQUIRED)
  280. set(CUSP_INCLUDE_DIRS "${PROJECT_SOURCE_DIR}/resources/3rdparty/cusplibrary")
  281. find_package(Cusp REQUIRED)
  282. find_package(Thrust REQUIRED)
  283. set(STORM_CUDA_LIB_NAME "storm-cuda")
  284. file(GLOB_RECURSE STORM_CUDA_KERNEL_FILES ${PROJECT_SOURCE_DIR}/cuda/kernels/*.cu)
  285. file(GLOB_RECURSE STORM_CUDA_HEADER_FILES ${PROJECT_SOURCE_DIR}/cuda/kernels/*.h)
  286. source_group(kernels FILES ${STORM_CUDA_KERNEL_FILES} ${STORM_CUDA_HEADER_FILES})
  287. include_directories(${PROJECT_SOURCE_DIR}/cuda/kernels/)
  288. #set(CUDA_PROPAGATE_HOST_FLAGS OFF)
  289. set(CUDA_NVCC_FLAGS "-arch=sm_30")
  290. #############################################################
  291. ##
  292. ## CUSP
  293. ##
  294. #############################################################
  295. if(CUSP_FOUND)
  296. include_directories(${CUSP_INCLUDE_DIR})
  297. cuda_include_directories(${CUSP_INCLUDE_DIR})
  298. message(STATUS "StoRM (CudaPlugin) - Found CUSP Version ${CUSP_VERSION} in location ${CUSP_INCLUDE_DIR}")
  299. else()
  300. message(FATAL_ERROR "StoRM (CudaPlugin) - Could not find CUSP!")
  301. endif()
  302. #############################################################
  303. ##
  304. ## Thrust
  305. ##
  306. #############################################################
  307. if(THRUST_FOUND)
  308. include_directories(${THRUST_INCLUDE_DIR})
  309. cuda_include_directories(${THRUST_INCLUDE_DIR})
  310. message(STATUS "StoRM (CudaPlugin) - Found Thrust Version ${THRUST_VERSION} in location ${THRUST_INCLUDE_DIR}")
  311. else()
  312. message(FATAL_ERROR "StoRM (CudaPlugin) - Could not find Thrust! Check your CUDA installation.")
  313. endif()
  314. include_directories(${CUDA_INCLUDE_DIRS})
  315. include_directories(${ADDITIONAL_INCLUDE_DIRS})
  316. cuda_add_library(${STORM_CUDA_LIB_NAME}
  317. ${STORM_CUDA_KERNEL_FILES} ${STORM_CUDA_HEADER_FILES}
  318. )
  319. endif()
  320. #############################################################
  321. ##
  322. ## Source file aggregation and clustering
  323. ##
  324. #############################################################
  325. file(GLOB_RECURSE STORM_HEADERS ${PROJECT_SOURCE_DIR}/src/*.h)
  326. file(GLOB_RECURSE STORM_HEADERS_CLI ${PROJECT_SOURCE_DIR}/src/cli/*.h)
  327. file(GLOB_RECURSE STORM_SOURCES_WITHOUT_MAIN ${PROJECT_SOURCE_DIR}/src/*/*.cpp)
  328. file(GLOB_RECURSE STORM_SOURCES_CLI ${PROJECT_SOURCE_DIR}/src/cli/*.cpp)
  329. file(GLOB_RECURSE STORM_MAIN_FILE ${PROJECT_SOURCE_DIR}/src/storm.cpp)
  330. file(GLOB_RECURSE STORM_ADAPTERS_FILES ${PROJECT_SOURCE_DIR}/src/adapters/*.h ${PROJECT_SOURCE_DIR}/src/adapters/*.cpp)
  331. file(GLOB_RECURSE STORM_BUILDER_FILES ${PROJECT_SOURCE_DIR}/src/builder/*.h ${PROJECT_SOURCE_DIR}/src/builder/*.cpp)
  332. file(GLOB_RECURSE STORM_CLI_FILES ${PROJECT_SOURCE_DIR}/src/cli/*.h ${PROJECT_SOURCE_DIR}/src/cli/*.cpp)
  333. file(GLOB_RECURSE STORM_EXCEPTIONS_FILES ${PROJECT_SOURCE_DIR}/src/exceptions/*.h ${PROJECT_SOURCE_DIR}/src/exceptions/*.cpp)
  334. file(GLOB_RECURSE STORM_LOGIC_FILES ${PROJECT_SOURCE_DIR}/src/logic/*.h ${PROJECT_SOURCE_DIR}/src/logic/*.cpp)
  335. file(GLOB STORM_MODELCHECKER_FILES ${PROJECT_SOURCE_DIR}/src/modelchecker/*.h ${PROJECT_SOURCE_DIR}/src/modelchecker/*.cpp)
  336. file(GLOB STORM_MODELCHECKER_PRCTL_FILES ${PROJECT_SOURCE_DIR}/src/modelchecker/prctl/*.h ${PROJECT_SOURCE_DIR}/src/modelchecker/prctl/*.cpp)
  337. file(GLOB_RECURSE STORM_MODELCHECKER_PRCTL_HELPER_FILES ${PROJECT_SOURCE_DIR}/src/modelchecker/prctl/helper/*.h ${PROJECT_SOURCE_DIR}/src/modelchecker/prctl/helper/*.cpp)
  338. file(GLOB STORM_MODELCHECKER_CSL_FILES ${PROJECT_SOURCE_DIR}/src/modelchecker/csl/*.h ${PROJECT_SOURCE_DIR}/src/modelchecker/csl/*.cpp)
  339. file(GLOB_RECURSE STORM_MODELCHECKER_CSL_HELPER_FILES ${PROJECT_SOURCE_DIR}/src/modelchecker/csl/helper/*.h ${PROJECT_SOURCE_DIR}/src/modelchecker/csl/helper/*.cpp)
  340. file(GLOB_RECURSE STORM_MODELCHECKER_REACHABILITY_FILES ${PROJECT_SOURCE_DIR}/src/modelchecker/reachability/*.h ${PROJECT_SOURCE_DIR}/src/modelchecker/reachability/*.cpp)
  341. file(GLOB_RECURSE STORM_MODELCHECKER_PROPOSITIONAL_FILES ${PROJECT_SOURCE_DIR}/src/modelchecker/propositional/*.h ${PROJECT_SOURCE_DIR}/src/modelchecker/propositional/*.cpp)
  342. file(GLOB_RECURSE STORM_MODELCHECKER_RESULTS_FILES ${PROJECT_SOURCE_DIR}/src/modelchecker/results/*.h ${PROJECT_SOURCE_DIR}/src/modelchecker/results/*.cpp)
  343. file(GLOB_RECURSE STORM_COUNTEREXAMPLES_FILES ${PROJECT_SOURCE_DIR}/src/counterexamples/*.h ${PROJECT_SOURCE_DIR}/src/counterexamples/*.cpp)
  344. file(GLOB STORM_MODELS_FILES ${PROJECT_SOURCE_DIR}/src/models/*.h ${PROJECT_SOURCE_DIR}/src/models/*.cpp)
  345. file(GLOB_RECURSE STORM_MODELS_SPARSE_FILES ${PROJECT_SOURCE_DIR}/src/models/sparse/*.h ${PROJECT_SOURCE_DIR}/src/models/sparse/*.cpp)
  346. file(GLOB_RECURSE STORM_MODELS_SYMBOLIC_FILES ${PROJECT_SOURCE_DIR}/src/models/symbolic/*.h ${PROJECT_SOURCE_DIR}/src/models/symbolic/*.cpp)
  347. file(GLOB STORM_PARSER_FILES ${PROJECT_SOURCE_DIR}/src/parser/*.h ${PROJECT_SOURCE_DIR}/src/parser/*.cpp)
  348. file(GLOB_RECURSE STORM_PARSER_PRISMPARSER_FILES ${PROJECT_SOURCE_DIR}/src/parser/prismparser/*.h ${PROJECT_SOURCE_DIR}/src/parser/prismparser/*.cpp)
  349. file(GLOB STORM_SETTINGS_FILES ${PROJECT_SOURCE_DIR}/src/settings/*.h ${PROJECT_SOURCE_DIR}/src/settings/*.cpp)
  350. file(GLOB STORM_SETTINGS_MODULES_FILES ${PROJECT_SOURCE_DIR}/src/settings/modules/*.h ${PROJECT_SOURCE_DIR}/src/settings/modules/*.cpp)
  351. file(GLOB_RECURSE STORM_SOLVER_FILES ${PROJECT_SOURCE_DIR}/src/solver/*.h ${PROJECT_SOURCE_DIR}/src/solver/*.cpp)
  352. file(GLOB STORM_STORAGE_FILES ${PROJECT_SOURCE_DIR}/src/storage/*.h ${PROJECT_SOURCE_DIR}/src/storage/*.cpp)
  353. file(GLOB_RECURSE STORM_STORAGE_DD_FILES ${PROJECT_SOURCE_DIR}/src/storage/dd/*.h ${PROJECT_SOURCE_DIR}/src/storage/dd/*.cpp)
  354. file(GLOB_RECURSE STORM_STORAGE_EXPRESSIONS_FILES ${PROJECT_SOURCE_DIR}/src/storage/expressions/*.h ${PROJECT_SOURCE_DIR}/src/storage/expressions/*.cpp)
  355. file(GLOB_RECURSE STORM_STORAGE_PRISM_FILES ${PROJECT_SOURCE_DIR}/src/storage/prism/*.h ${PROJECT_SOURCE_DIR}/src/storage/prism/*.cpp)
  356. file(GLOB_RECURSE STORM_STORAGE_SPARSE_FILES ${PROJECT_SOURCE_DIR}/src/storage/sparse/*.h ${PROJECT_SOURCE_DIR}/src/storage/sparse/*.cpp)
  357. file(GLOB_RECURSE STORM_UTILITY_FILES ${PROJECT_SOURCE_DIR}/src/utility/*.h ${PROJECT_SOURCE_DIR}/src/utility/*.cpp)
  358. # Test Sources
  359. # Note that the tests also need the source files, except for the main file
  360. file(GLOB STORM_FUNCTIONAL_TEST_MAIN_FILE ${STORM_CPP_TESTS_BASE_PATH}/functional/storm-functional-tests.cpp)
  361. file(GLOB_RECURSE STORM_FUNCTIONAL_TEST_FILES ${STORM_CPP_TESTS_BASE_PATH}/functional/*.h ${STORM_CPP_TESTS_BASE_PATH}/functional/*.cpp)
  362. file(GLOB STORM_PERFORMANCE_TEST_MAIN_FILE ${STORM_CPP_TESTS_BASE_PATH}/performance/storm-performance-tests.cpp)
  363. file(GLOB_RECURSE STORM_PERFORMANCE_TEST_FILES ${STORM_CPP_TESTS_BASE_PATH}/performance/*.h ${STORM_CPP_TESTS_BASE_PATH}/performance/*.cpp)
  364. # Additional include files like the storm-config.h
  365. file(GLOB_RECURSE STORM_BUILD_HEADERS ${PROJECT_BINARY_DIR}/include/*.h)
  366. set(STORM_LIB_SOURCES ${STORM_SOURCES_WITHOUT_MAIN})
  367. list(REMOVE_ITEM STORM_LIB_SOURCES ${STORM_SOURCES_CLI})
  368. set(STORM_LIB_HEADERS ${STORM_HEADERS})
  369. list(REMOVE_ITEM STORM_LIB_HEADERS ${STORM_HEADERS_CLI})
  370. set(STORM_MAIN_SOURCES ${STORM_SOURCES_CLI} ${STORM_MAIN_FILE})
  371. set(STORM_MAIN_HEADERS ${STORM_HEADERS_CLI})
  372. # Group the headers and sources
  373. source_group(main FILES ${STORM_MAIN_FILE})
  374. source_group(adapters FILES ${STORM_ADAPTERS_FILES})
  375. source_group(builder FILES ${STORM_BUILDER_FILES})
  376. source_group(cli FILES ${STORM_CLI_FILES})
  377. source_group(exceptions FILES ${STORM_EXCEPTIONS_FILES})
  378. source_group(logic FILES ${STORM_LOGIC_FILES})
  379. source_group(generated FILES ${STORM_BUILD_HEADERS} ${STORM_BUILD_SOURCES})
  380. source_group(modelchecker FILES ${STORM_MODELCHECKER_FILES})
  381. source_group(modelchecker\\prctl FILES ${STORM_MODELCHECKER_PRCTL_FILES})
  382. source_group(modelchecker\\prctl\\helper FILES ${STORM_MODELCHECKER_PRCTL_HELPER_FILES})
  383. source_group(modelchecker\\csl FILES ${STORM_MODELCHECKER_CSL_FILES})
  384. source_group(modelchecker\\csl\\helper FILES ${STORM_MODELCHECKER_CSL_HELPER_FILES})
  385. source_group(modelchecker\\reachability FILES ${STORM_MODELCHECKER_REACHABILITY_FILES})
  386. source_group(modelchecker\\propositional FILES ${STORM_MODELCHECKER_PROPOSITIONAL_FILES})
  387. source_group(modelchecker\\results FILES ${STORM_MODELCHECKER_RESULTS_FILES})
  388. source_group(counterexamples FILES ${STORM_COUNTEREXAMPLES_FILES})
  389. source_group(models FILES ${STORM_MODELS_FILES})
  390. source_group(models\\sparse FILES ${STORM_MODELS_SPARSE_FILES})
  391. source_group(models\\symbolic FILES ${STORM_MODELS_SYMBOLIC_FILES})
  392. source_group(parser FILES ${STORM_PARSER_FILES})
  393. source_group(parser\\prismparser FILES ${STORM_PARSER_PRISMPARSER_FILES})
  394. source_group(settings FILES ${STORM_SETTINGS_FILES})
  395. source_group(settings\\modules FILES ${STORM_SETTINGS_MODULES_FILES})
  396. source_group(solver FILES ${STORM_SOLVER_FILES})
  397. source_group(storage FILES ${STORM_STORAGE_FILES})
  398. source_group(storage\\dd FILES ${STORM_STORAGE_DD_FILES})
  399. source_group(storage\\expressions FILES ${STORM_STORAGE_EXPRESSIONS_FILES})
  400. source_group(storage\\prism FILES ${STORM_STORAGE_PRISM_FILES})
  401. source_group(storage\\sparse FILES ${STORM_STORAGE_SPARSE_FILES})
  402. source_group(utility FILES ${STORM_UTILITY_FILES})
  403. source_group(functional-test FILES ${STORM_FUNCTIONAL_TEST_FILES})
  404. source_group(performance-test FILES ${STORM_PERFORMANCE_TEST_FILES} ${})
  405. # Add custom additional include or link directories
  406. if (ADDITIONAL_INCLUDE_DIRS)
  407. message(STATUS "StoRM - Using additional include directories ${ADDITIONAL_INCLUDE_DIRS}")
  408. include_directories(${ADDITIONAL_INCLUDE_DIRS})
  409. endif(ADDITIONAL_INCLUDE_DIRS)
  410. if (ADDITIONAL_LINK_DIRS)
  411. message(STATUS "StoRM - Using additional link directories ${ADDITIONAL_LINK_DIRS}")
  412. link_directories(${ADDITIONAL_LINK_DIRS})
  413. endif(ADDITIONAL_LINK_DIRS)
  414. #############################################################
  415. ##
  416. ## Pre executable-creation link_directories setup
  417. ##
  418. #############################################################
  419. if (ENABLE_GUROBI)
  420. if (NOT GUROBI_FOUND)
  421. message(FATAL_ERROR "Gurobi was requested, but not found!")
  422. endif()
  423. #link_directories("${GUROBI_ROOT}/lib")
  424. endif()
  425. if (ENABLE_MSAT)
  426. link_directories("${MSAT_ROOT}/lib")
  427. endif()
  428. if(GMP_FOUND)
  429. link_directories(${GMP_LIBRARY_DIR})
  430. elseif(MPIR_FOUND)
  431. link_directories(${GMP_MPIR_LIBRARY_DIR} ${GMP_MPIRXX_LIBRARY_DIR})
  432. else(GMP_FOUND)
  433. if (ENABLE_MSAT)
  434. message(FATAL_ERROR "GMP is required for MathSAT, but was not found!")
  435. endif(ENABLE_MSAT)
  436. endif(GMP_FOUND)
  437. if ((NOT Boost_LIBRARY_DIRS) OR ("${Boost_LIBRARY_DIRS}" STREQUAL ""))
  438. set(Boost_LIBRARY_DIRS "${Boost_INCLUDE_DIRS}/stage/lib")
  439. endif ()
  440. link_directories(${Boost_LIBRARY_DIRS})
  441. if (TBB_FOUND AND STORM_USE_INTELTBB)
  442. link_directories(${TBB_LIBRARY_DIRS})
  443. endif()
  444. ###############################################################################
  445. ## #
  446. ## Executable Creation #
  447. ## #
  448. ## All link_directories() calls MUST be made before this point #
  449. ## #
  450. ###############################################################################
  451. add_library(storm ${STORM_LIB_SOURCES} ${STORM_LIB_HEADERS} ${STORM_GENERATED_SOURCES}) # Adding headers for xcode
  452. add_executable(storm-main ${STORM_MAIN_SOURCES} ${STORM_MAIN_HEADERS})
  453. target_link_libraries(storm-main storm) # Adding headers for xcode
  454. set_target_properties(storm-main PROPERTIES OUTPUT_NAME "storm")
  455. add_executable(storm-functional-tests ${STORM_FUNCTIONAL_TEST_MAIN_FILE} ${STORM_FUNCTIONAL_TEST_FILES})
  456. target_link_libraries(storm-functional-tests storm)
  457. add_executable(storm-performance-tests ${STORM_PERFORMANCE_TEST_MAIN_FILE} ${STORM_PERFORMANCE_TEST_FILES})
  458. target_link_libraries(storm-performance-tests storm)
  459. #############################################################
  460. ##
  461. ## Boost
  462. ##
  463. #############################################################
  464. include_directories(${Boost_INCLUDE_DIRS})
  465. target_link_libraries(storm ${Boost_LIBRARIES})
  466. #message(STATUS "BOOST_INCLUDE_DIRS is ${Boost_INCLUDE_DIRS}")
  467. #message(STATUS "BOOST_LIBRARY_DIRS is ${Boost_LIBRARY_DIRS}")
  468. #############################################################
  469. ##
  470. ## CUDD
  471. ##
  472. #############################################################
  473. add_subdirectory("${PROJECT_SOURCE_DIR}/resources/3rdparty/cudd-2.5.0")
  474. include_directories("${PROJECT_SOURCE_DIR}/resources/3rdparty/cudd-2.5.0/src/cudd")
  475. include_directories("${PROJECT_SOURCE_DIR}/resources/3rdparty/cudd-2.5.0/src/epd")
  476. include_directories("${PROJECT_SOURCE_DIR}/resources/3rdparty/cudd-2.5.0/src/mtr")
  477. include_directories("${PROJECT_SOURCE_DIR}/resources/3rdparty/cudd-2.5.0/src/nanotrav")
  478. include_directories("${PROJECT_SOURCE_DIR}/resources/3rdparty/cudd-2.5.0/src/obj")
  479. include_directories("${PROJECT_SOURCE_DIR}/resources/3rdparty/cudd-2.5.0/src/st")
  480. include_directories("${PROJECT_SOURCE_DIR}/resources/3rdparty/cudd-2.5.0/src/util")
  481. target_link_libraries(storm cudd)
  482. #############################################################
  483. ##
  484. ## Gurobi (optional)
  485. ##
  486. #############################################################
  487. if (ENABLE_GUROBI)
  488. message (STATUS "StoRM - Linking with Gurobi (include: ${GUROBI_INCLUDE_DIRS})")
  489. include_directories(${GUROBI_INCLUDE_DIRS})
  490. target_link_libraries(storm ${GUROBI_LIBRARY})
  491. endif(ENABLE_GUROBI)
  492. #############################################################
  493. ##
  494. ## CUDA (optional)
  495. ##
  496. #############################################################
  497. if (ENABLE_CUDA)
  498. message (STATUS "StoRM - Linking with CUDA")
  499. target_link_libraries(storm ${STORM_CUDA_LIB_NAME})
  500. include_directories("${PROJECT_SOURCE_DIR}/cuda/kernels/")
  501. endif(ENABLE_CUDA)
  502. #############################################################
  503. ##
  504. ## glpk
  505. ##
  506. #############################################################
  507. message (STATUS "StoRM - Linking with glpk")
  508. add_subdirectory("${PROJECT_SOURCE_DIR}/resources/3rdparty/glpk-4.53")
  509. include_directories("${PROJECT_SOURCE_DIR}/resources/3rdparty/glpk-4.53/src")
  510. target_link_libraries(storm "glpk")
  511. #############################################################
  512. ##
  513. ## ExprTk
  514. ##
  515. #############################################################
  516. message (STATUS "StoRM - Including ExprTk")
  517. include_directories("${PROJECT_SOURCE_DIR}/resources/3rdparty/exprtk")
  518. #############################################################
  519. ##
  520. ## Z3 (optional)
  521. ##
  522. #############################################################
  523. if(STORM_HAVE_Z3)
  524. message (STATUS "StoRM - Linking with Z3")
  525. include_directories(${Z3_INCLUDE_DIRS})
  526. target_link_libraries(storm ${Z3_LIBRARIES})
  527. endif(STORM_HAVE_Z3)
  528. #############################################################
  529. ##
  530. ## carl
  531. ##
  532. #############################################################
  533. if(STORM_HAVE_CARL)
  534. message(STATUS "StoRM - Linking with carl.")
  535. include_directories("${carl_INCLUDE_DIR}")
  536. target_link_libraries(storm ${carl_LIBRARIES})
  537. endif()
  538. #############################################################
  539. ##
  540. ## SMT-RAT
  541. ##
  542. #############################################################
  543. if(STORM_HAVE_SMTRAT)
  544. message(STATUS "StoRM - Linking with smtrat.")
  545. include_directories("${smtrat_INCLUDE_DIR}")
  546. target_link_libraries(storm ${smtrat_LIBRARIES})
  547. endif()
  548. #############################################################
  549. ##
  550. ## MathSAT (optional)
  551. ##
  552. #############################################################
  553. if (ENABLE_MSAT)
  554. message (STATUS "StoRM - Linking with MathSAT")
  555. include_directories("${MSAT_ROOT}/include")
  556. target_link_libraries(storm "mathsat")
  557. if(GMP_FOUND)
  558. include_directories("${GMP_INCLUDE_DIR}")
  559. target_link_libraries(storm "gmp")
  560. elseif(MPIR_FOUND)
  561. include_directories("${GMP_INCLUDE_DIR}")
  562. target_link_libraries(storm "mpir" "mpirxx")
  563. else(GMP_FOUND)
  564. message(FATAL_ERROR "GMP is required for MathSAT, but was not found!")
  565. endif(GMP_FOUND)
  566. endif(ENABLE_MSAT)
  567. #############################################################
  568. ##
  569. ## Google Test gtest
  570. ##
  571. #############################################################
  572. set(gtest_force_shared_crt ON)
  573. add_subdirectory("${PROJECT_SOURCE_DIR}/resources/3rdparty/gtest-1.7.0")
  574. include_directories("${PROJECT_SOURCE_DIR}/resources/3rdparty/gtest-1.7.0/include")
  575. enable_testing()
  576. target_link_libraries(storm-functional-tests gtest)
  577. target_link_libraries(storm-performance-tests gtest)
  578. add_test(NAME storm-functional-tests COMMAND storm-functional-tests)
  579. add_test(NAME storm-performance-tests COMMAND storm-performance-tests)
  580. #############################################################
  581. ##
  582. ## Log4CPlus
  583. ##
  584. #############################################################
  585. set(BUILD_SHARED_LIBS OFF CACHE BOOL "If TRUE, log4cplus is built as a shared library, otherwise as a static library")
  586. set(LOG4CPLUS_BUILD_LOGGINGSERVER OFF)
  587. set(LOG4CPLUS_BUILD_TESTING OFF)
  588. set(LOG4CPLUS_USE_UNICODE OFF)
  589. set(LOG4CPLUS_DEFINE_INSTALL_TARGET OFF)
  590. add_subdirectory("${PROJECT_SOURCE_DIR}/resources/3rdparty/log4cplus-1.1.3-rc1")
  591. include_directories("${PROJECT_SOURCE_DIR}/resources/3rdparty/log4cplus-1.1.3-rc1/include")
  592. include_directories("${PROJECT_BINARY_DIR}/resources/3rdparty/log4cplus-1.1.3-rc1/include") # This adds the defines.hxx file
  593. target_link_libraries(storm log4cplusS)
  594. target_link_libraries(storm-functional-tests log4cplusS)
  595. target_link_libraries(storm-performance-tests log4cplusS)
  596. if (UNIX AND NOT APPLE)
  597. target_link_libraries(storm rt)
  598. if (STORM_USE_COTIRE)
  599. target_link_libraries(storm_unity rt)
  600. endif(STORM_USE_COTIRE)
  601. endif(UNIX AND NOT APPLE)
  602. #############################################################
  603. ##
  604. ## Intel Threading Building Blocks (optional)
  605. ##
  606. #############################################################
  607. if (TBB_FOUND)
  608. message(STATUS "StoRM - Found Intel TBB with interface version ${TBB_INTERFACE_VERSION}.")
  609. if (STORM_USE_INTELTBB)
  610. message(STATUS "StoRM - Linking with Intel TBB in ${TBB_LIBRARY_DIRS}.")
  611. include_directories(${TBB_INCLUDE_DIRS})
  612. target_link_libraries(storm tbb tbbmalloc)
  613. endif(STORM_USE_INTELTBB)
  614. endif(TBB_FOUND)
  615. #############################################################
  616. ##
  617. ## Threads
  618. ##
  619. #############################################################
  620. include_directories(${THREADS_INCLUDE_DIRS})
  621. target_link_libraries(storm ${CMAKE_THREAD_LIBS_INIT})
  622. if (STORM_USE_COTIRE)
  623. target_link_libraries(storm_unity ${CMAKE_THREAD_LIBS_INIT})
  624. endif(STORM_USE_COTIRE)
  625. if (MSVC)
  626. # Add the DebugHelper DLL
  627. set(CMAKE_CXX_STANDARD_LIBRARIES "${CMAKE_CXX_STANDARD_LIBRARIES} Dbghelp.lib")
  628. target_link_libraries(storm "Dbghelp.lib")
  629. endif(MSVC)
  630. #############################################################
  631. ##
  632. ## Cotire
  633. ##
  634. #############################################################
  635. message (STATUS "StoRM - Using Cotire: ${STORM_USE_COTIRE}")
  636. if (STORM_USE_COTIRE)
  637. # Include Cotire for PCH Generation
  638. set (CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/resources/cmake")
  639. include(cotire)
  640. cotire(storm)
  641. target_link_libraries(storm_unity ${Boost_LIBRARIES})
  642. #cotire(storm-functional-tests)
  643. #cotire(storm-performance-tests)
  644. endif()
  645. #############################################################
  646. ##
  647. ## libc++abi
  648. ##
  649. #############################################################
  650. # Link against libc++abi if requested. May be needed to build on Linux systems using clang.
  651. if (LINK_LIBCXXABI)
  652. message (STATUS "StoRM - Linking against libc++abi.")
  653. target_link_libraries(storm "c++abi")
  654. endif(LINK_LIBCXXABI)
  655. #############################################################
  656. ##
  657. ## Doxygen
  658. ##
  659. #############################################################
  660. # Add a target to generate API documentation with Doxygen
  661. if(DOXYGEN_FOUND)
  662. set(CMAKE_DOXYGEN_OUTPUT_DIR "${CMAKE_CURRENT_BINARY_DIR}/doc")
  663. string(REGEX REPLACE ";" " " CMAKE_DOXYGEN_INPUT_LIST "${PROJECT_SOURCE_DIR}/src")
  664. configure_file("${CMAKE_CURRENT_SOURCE_DIR}/doc/Doxyfile.in" "${CMAKE_CURRENT_BINARY_DIR}/Doxyfile" @ONLY)
  665. add_custom_target(doc ${DOXYGEN_EXECUTABLE} "${CMAKE_CURRENT_BINARY_DIR}/Doxyfile" DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/Doxyfile" COMMENT "Generating API documentation with Doxygen" VERBATIM)
  666. endif(DOXYGEN_FOUND)
  667. #############################################################
  668. ##
  669. ## memcheck targets
  670. ##
  671. #############################################################
  672. 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)
  673. 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)
  674. 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)
  675. set(CPPLINT_ARGS --filter=-whitespace/tab,-whitespace/line_length,-legal/copyright,-readability/streams)
  676. add_custom_target(style python cpplint.py ${CPPLINT_ARGS} `find ./src/ -iname "*.h" -or -iname "*.cpp" `)
  677. INSTALL(TARGETS storm-main storm-functional-tests storm-performance-tests
  678. RUNTIME DESTINATION bin
  679. LIBRARY DESTINATION lib
  680. ARCHIVE DESTINATION lib
  681. )
  682. include(StormCPackConfig.cmake)