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.

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