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.

429 lines
17 KiB

  1. cmake_minimum_required (VERSION 3.2)
  2. cmake_policy(VERSION 3.2)
  3. # Set project name
  4. project (storm CXX C)
  5. # Add base folder for better inclusion paths
  6. include_directories("${PROJECT_SOURCE_DIR}/src")
  7. include_directories("${PROJECT_SOURCE_DIR}/src/storm")
  8. # Add the resources/cmake folder to Module Search Path for FindTBB.cmake
  9. set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${PROJECT_SOURCE_DIR}/resources/cmake/find_modules" "${PROJECT_SOURCE_DIR}/resources/cmake/macros")
  10. include(ExternalProject)
  11. include(RegisterSourceGroup)
  12. include(imported)
  13. #############################################################
  14. ##
  15. ## CMake options of storm
  16. ##
  17. #############################################################
  18. option(STORM_DEVELOPER "Sets whether the development mode is used." OFF)
  19. option(STORM_ALLWARNINGS "Compile with even more warnings" OFF)
  20. option(STORM_USE_LTO "Sets whether link-time optimizations are enabled." ON)
  21. MARK_AS_ADVANCED(STORM_USE_LTO)
  22. option(STORM_PORTABLE "Sets whether a build needs to be portable." OFF)
  23. MARK_AS_ADVANCED(STORM_PORTABLE)
  24. option(STORM_USE_POPCNT "Sets whether the popcnt instruction is going to be used." ON)
  25. MARK_AS_ADVANCED(STORM_USE_POPCNT)
  26. option(USE_BOOST_STATIC_LIBRARIES "Sets whether the Boost libraries should be linked statically." OFF)
  27. option(STORM_USE_INTELTBB "Sets whether the Intel TBB libraries should be used." OFF)
  28. option(STORM_USE_GUROBI "Sets whether Gurobi should be used." OFF)
  29. option(USE_CARL "Sets whether carl should be included." ON)
  30. option(STORM_FORCE_SHIPPED_CARL "Sets whether the shipped version of carl is to be used no matter whether carl is found or not." OFF)
  31. MARK_AS_ADVANCED(STORM_FORCE_SHIPPED_CARL)
  32. option(USE_SMTRAT "Sets whether SMT-RAT should be included." OFF)
  33. option(USE_HYPRO "Sets whether HyPro should be included." OFF)
  34. option(XML_SUPPORT "Sets whether xml based format parsing should be included." ON)
  35. option(FORCE_COLOR "Force color output" OFF)
  36. mark_as_advanced(FORCE_COLOR)
  37. option(STORM_COMPILE_WITH_CCACHE "Compile using CCache [if found]" ON)
  38. mark_as_advanced(STORM_COMPILE_WITH_CCACHE)
  39. option(STORM_LOG_DISABLE_DEBUG "Disable log and trace message support" OFF)
  40. option(STORM_USE_CLN_NUMBERS "Sets whether CLN or GMP numbers should be used" ON)
  41. option(BUILD_SHARED_LIBS "Build the storm library dynamically" OFF)
  42. set(BOOST_ROOT "" CACHE STRING "A hint to the root directory of Boost (optional).")
  43. set(GUROBI_ROOT "" CACHE STRING "A hint to the root directory of Gurobi (optional).")
  44. set(Z3_ROOT "" CACHE STRING "A hint to the root directory of Z3 (optional).")
  45. set(CUDA_ROOT "" CACHE STRING "The hint to the root directory of CUDA (optional).")
  46. set(MSAT_ROOT "" CACHE STRING "The hint to the root directory of MathSAT (optional).")
  47. set(ADDITIONAL_INCLUDE_DIRS "" CACHE STRING "Additional directories added to the include directories.")
  48. set(ADDITIONAL_LINK_DIRS "" CACHE STRING "Additional directories added to the link directories.")
  49. set(USE_XERCESC ${XML_SUPPORT})
  50. mark_as_advanced(USE_XERCESC)
  51. # Sets the source from which storm is obtained. Can be either "git" or "archive". This
  52. # influences, among other things, the version information.
  53. set(STORM_SOURCE "git" CACHE STRING "The source from which storm is obtained: either 'git' or 'archive'.")
  54. mark_as_advanced(STORM_SOURCE)
  55. # Set some CMAKE Variables as advanced
  56. mark_as_advanced(CMAKE_OSX_ARCHITECTURES)
  57. mark_as_advanced(CMAKE_OSX_SYSROOT)
  58. mark_as_advanced(CMAKE_OSX_DEPLOYMENT_TARGET)
  59. # Offer the user the choice of overriding the installation directories
  60. set(INCLUDE_INSTALL_DIR include/ CACHE PATH "Installation directory for header files" )
  61. set(LIB_INSTALL_DIR lib/ CACHE PATH "Installation directory for libraries")
  62. #set(SYSCONFIG_INSTALL_DIR etc/carl/ CACHE PATH "Installation for system configuration files)
  63. set(BIN_INSTALL_DIR lib/ CACHE PATH "Installation directory for executables")
  64. # By default, we build a release version.
  65. if (NOT CMAKE_BUILD_TYPE)
  66. set(CMAKE_BUILD_TYPE "RELEASE")
  67. endif()
  68. # Install dir for cmake files (info for other libraries that include storm)
  69. set(DEF_INSTALL_CMAKE_DIR "lib/CMake/storm")
  70. set(CMAKE_INSTALL_DIR ${DEF_INSTALL_CMAKE_DIR} CACHE PATH "Installation directory for CMake files")
  71. message("CMAKE_INSTALL_DIR: ${CMAKE_INSTALL_DIR}")
  72. # If the STORM_DEVELOPER option was turned on, we target a debug version.
  73. if (STORM_DEVELOPER)
  74. set(CMAKE_BUILD_TYPE "DEBUG")
  75. set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DSTORM_DEV")
  76. else()
  77. set(STORM_LOG_DISABLE_DEBUG ON)
  78. endif()
  79. message(STATUS "storm - Building ${CMAKE_BUILD_TYPE} version.")
  80. if(STORM_COMPILE_WITH_CCACHE)
  81. find_program(CCACHE_FOUND ccache)
  82. mark_as_advanced(CCACHE_FOUND)
  83. if(CCACHE_FOUND)
  84. message(STATUS "storm - Using ccache")
  85. set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ccache)
  86. set_property(GLOBAL PROPERTY RULE_LAUNCH_LINK ccache)
  87. else()
  88. message(STATUS "storm - Could not find ccache.")
  89. endif()
  90. endif()
  91. # Directory for test resources.
  92. set(STORM_TEST_RESOURCES_DIR "${PROJECT_SOURCE_DIR}/resources/examples/testfiles")
  93. # Auto-detect operating system.
  94. set(MACOSX 0)
  95. set(LINUX 0)
  96. if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
  97. # Mac OS
  98. set(OPERATING_SYSTEM "Mac OS")
  99. set(MACOSX 1)
  100. elseif(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
  101. # Linux
  102. set(OPERATING_SYSTEM "Linux")
  103. set(LINUX 1)
  104. elseif(WIN32)
  105. # Assuming Windows.
  106. set(OPERATING_SYSTEM "Windows")
  107. else()
  108. message(WARNING "We are unsure about your operating system.")
  109. set(OPERATING_SYSTEM "Linux")
  110. set(LINUX 1)
  111. ENDIF()
  112. message(STATUS "storm - Detected operating system ${OPERATING_SYSTEM}.")
  113. set(DYNAMIC_EXT ".so")
  114. set(STATIC_EXT ".a")
  115. set(LIB_PREFIX "lib")
  116. if(MACOSX)
  117. set(DYNAMIC_EXT ".dylib")
  118. set(STATIC_EXT ".a")
  119. set(LIB_PREFIX "lib")
  120. elseif (WIN32)
  121. set(DYNAMIC_EXT ".dll")
  122. set(STATIC_EXT ".lib")
  123. set(LIB_PREFIX "")
  124. endif()
  125. message(STATUS "Assuming extension for shared libraries: ${DYNAMIC_EXT}")
  126. message(STATUS "Assuming extension for static libraries: ${STATIC_EXT}")
  127. if(BUILD_SHARED_LIBS)
  128. set(LIB_EXT ${DYNAMIC_EXT})
  129. message(STATUS "Build dynamic libraries.")
  130. else()
  131. set(LIB_EXT ${STATIC_EXT})
  132. message(STATUS "Build static libraries.")
  133. endif()
  134. #############################################################
  135. ##
  136. ## Compiler detection and initial configuration
  137. ##
  138. #############################################################
  139. if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
  140. # using Clang
  141. if (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 3.2)
  142. message(FATAL_ERROR "Clang version must be at least 3.2.")
  143. endif()
  144. set(STORM_COMPILER_CLANG ON)
  145. set(CLANG ON)
  146. set(STORM_COMPILER_ID "clang")
  147. elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "AppleClang")
  148. # using AppleClang
  149. if (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 7.3)
  150. message(FATAL_ERROR "AppleClang version must be at least 7.3.")
  151. endif()
  152. set(STORM_COMPILER_APPLECLANG ON)
  153. set(CLANG ON)
  154. set(STORM_COMPILER_ID "AppleClang")
  155. set(CMAKE_MACOSX_RPATH ON)
  156. elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
  157. # using GCC
  158. if (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 5.0)
  159. message(FATAL_ERROR "gcc version must be at least 5.0.")
  160. endif()
  161. set(STORM_COMPILER_GCC ON)
  162. set(STORM_COMPILER_ID "gcc")
  163. elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Intel")
  164. message(FATAL_ERROR "Intel compiler is currently not supported.")
  165. elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
  166. message(FATAL_ERROR "Visual Studio compiler is currently not supported.")
  167. endif()
  168. set(STORM_COMPILER_VERSION ${CMAKE_CXX_COMPILER_VERSION})
  169. if(CCACHE_FOUND)
  170. set(STORM_COMPILER_ID "${STORM_COMPILER_ID} (ccache)")
  171. endif()
  172. #############################################################
  173. ##
  174. ## Compiler independent settings
  175. ##
  176. #############################################################
  177. if (STORM_USE_POPCNT)
  178. set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mpopcnt")
  179. endif()
  180. # TODO: remove forcing the old version of optional as soon as the related Spirit bug is fixed:
  181. # https://svn.boost.org/trac/boost/ticket/12349
  182. # Fix thanks to: https://github.com/freeorion/freeorion/issues/777
  183. add_definitions(-DBOOST_RESULT_OF_USE_DECLTYPE -DBOOST_OPTIONAL_CONFIG_USE_OLD_IMPLEMENTATION_OF_OPTIONAL)
  184. #############################################################
  185. ##
  186. ## Compiler specific settings
  187. ##
  188. #############################################################
  189. if (STORM_COMPILER_CLANG OR STORM_COMPILER_APPLECLANG)
  190. if(FORCE_COLOR)
  191. set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fcolor-diagnostics")
  192. endif()
  193. if (LINUX)
  194. set(CLANG_STDLIB libstdc++)
  195. else()
  196. set(CLANG_STDLIB libc++)
  197. endif()
  198. set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14 -stdlib=${CLANG_STDLIB} -ftemplate-depth=1024")
  199. set (CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -ffast-math -fno-finite-math-only")
  200. set (CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,-export_dynamic")
  201. set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-export_dynamic")
  202. elseif (STORM_COMPILER_GCC)
  203. set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14")
  204. set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -flto -fprefetch-loop-arrays -ffast-math -fno-finite-math-only")
  205. set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -rdynamic")
  206. set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -rdynamic")
  207. endif ()
  208. if (STORM_USE_LTO)
  209. set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -flto")
  210. endif()
  211. # In release mode, we turn on even more optimizations if we do not have to provide a portable binary.
  212. if (NOT STORM_PORTABLE)
  213. set (CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -march=native")
  214. endif ()
  215. if (STORM_DEVELOPER)
  216. set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pedantic")
  217. if (STORM_ALLWARNINGS)
  218. if (CLANG)
  219. # Enable strictly every warning and then disable selected ones.
  220. set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Weverything")
  221. set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-c++98-compat -Wno-c++98-compat-pedantic")
  222. set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-old-style-cast")
  223. set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-reserved-id-macro")
  224. set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-newline-eof")
  225. set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-documentation")
  226. set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-weak-vtables")
  227. set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-global-constructors")
  228. set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-exit-time-destructors")
  229. set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-switch-enum")
  230. set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-covered-switch-default")
  231. set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-padded")
  232. set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-float-equal")
  233. set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-unused-local-typedef")
  234. set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-missing-variable-declarations")
  235. endif ()
  236. else ()
  237. set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra")
  238. set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-unknown-pragmas")
  239. set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-unused-local-typedefs")
  240. endif ()
  241. else()
  242. set (CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -fomit-frame-pointer")
  243. endif()
  244. #############################################################
  245. ##
  246. ## RPATH settings
  247. ##
  248. #############################################################
  249. # don't skip the full RPATH for the build tree
  250. SET(CMAKE_SKIP_BUILD_RPATH FALSE)
  251. # when building, don't use the install RPATH already (but only when installing)
  252. SET(CMAKE_BUILD_WITH_INSTALL_RPATH FALSE)
  253. # the RPATH to be used when installing
  254. SET(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib")
  255. # don't add the automatically determined parts of the RPATH
  256. # which point to directories outside the build tree to the install RPATH
  257. SET(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
  258. #############################################################
  259. ##
  260. ## Generator specific settings
  261. ##
  262. #############################################################
  263. if ("${CMAKE_GENERATOR}" STREQUAL "Xcode")
  264. set(CMAKE_XCODE_ATTRIBUTE_CLANG_CXX_LANGUAGE_STANDARD "c++11")
  265. set(CMAKE_XCODE_ATTRIBUTE_CLANG_CXX_LIBRARY "libc++")
  266. endif()
  267. # Display information about build configuration.
  268. message(STATUS "storm - Using compiler configuration ${STORM_COMPILER_ID} ${STORM_COMPILER_VERSION}.")
  269. if (STORM_DEVELOPER)
  270. message(STATUS "storm - CXX Flags: ${CMAKE_CXX_FLAGS}")
  271. message(STATUS "storm - CXX Debug Flags: ${CMAKE_CXX_FLAGS_DEBUG}")
  272. message(STATUS "storm - CXX Release Flags: ${CMAKE_CXX_FLAGS_RELEASE}")
  273. message(STATUS "storm - Build type: ${CMAKE_BUILD_TYPE}")
  274. endif()
  275. #############################################################
  276. #############################################################
  277. ##
  278. ## Inclusion of required libraries
  279. ##
  280. #############################################################
  281. #############################################################
  282. #############################################################
  283. ##
  284. ## Include the targets for non-system resources
  285. ##
  286. #############################################################
  287. # In 3rdparty, targets are being defined that can be used
  288. # in the the system does not have a library
  289. include(resources/3rdparty/CMakeLists.txt)
  290. #############################################################
  291. ##
  292. ## Doxygen
  293. ##
  294. #############################################################
  295. find_package(Doxygen)
  296. # Add a target to generate API documentation with Doxygen
  297. if(DOXYGEN_FOUND)
  298. set(CMAKE_DOXYGEN_OUTPUT_DIR "${CMAKE_CURRENT_BINARY_DIR}/doc")
  299. string(REGEX REPLACE ";" " " CMAKE_DOXYGEN_INPUT_LIST "${PROJECT_SOURCE_DIR}/src")
  300. configure_file("${CMAKE_CURRENT_SOURCE_DIR}/resources/doxygen/Doxyfile.in" "${CMAKE_CURRENT_BINARY_DIR}/Doxyfile" @ONLY)
  301. add_custom_target(doc ${DOXYGEN_EXECUTABLE} "${CMAKE_CURRENT_BINARY_DIR}/Doxyfile" DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/Doxyfile" COMMENT "Generating API documentation with Doxygen" VERBATIM)
  302. endif(DOXYGEN_FOUND)
  303. #############################################################
  304. ##
  305. ## CMake-generated Config File for storm
  306. ##
  307. #############################################################
  308. # If storm is built from an archive, we need to skip the version detection based on git.
  309. if (STORM_SOURCE STREQUAL "archive")
  310. if (NOT DEFINED STORM_VERSION_MAJOR OR NOT DEFINED STORM_VERSION_MINOR OR NOT DEFINED STORM_VERSION_PATCH)
  311. message(FATAL_ERROR "storm - building from archive requires setting a version via cmake.")
  312. endif()
  313. message(STATUS "storm - version is ${STORM_VERSION_MAJOR}.${STORM_VERSION_MINOR}.${STORM_VERSION_PATCH} (building from archive).")
  314. set(STORM_VERSION_COMMITS_AHEAD boost::none)
  315. set(STORM_VERSION_GIT_HASH boost::none)
  316. set(STORM_VERSION_DIRTY boost::none)
  317. else()
  318. if (DEFINED STORM_VERSION_MAJOR OR DEFINED STORM_VERSION_MINOR OR DEFINED STORM_VERSION_PATCH)
  319. message(FATAL_ERROR "storm - building from git does not support setting a version via cmake.")
  320. endif()
  321. # Make a version file containing the current version from git.
  322. include(GetGitRevisionDescription)
  323. get_git_head_revision(STORM_VERSION_REFSPEC STORM_VERSION_GIT_HASH)
  324. git_describe_checkout(STORM_GIT_VERSION_STRING)
  325. # Parse the git Tag into variables
  326. string(REGEX REPLACE "^([0-9]+)\\..*" "\\1" STORM_VERSION_MAJOR "${STORM_GIT_VERSION_STRING}")
  327. string(REGEX REPLACE "^[0-9]+\\.([0-9]+).*" "\\1" STORM_VERSION_MINOR "${STORM_GIT_VERSION_STRING}")
  328. string(REGEX REPLACE "^[0-9]+\\.[0-9]+\\.([0-9]+).*" "\\1" STORM_VERSION_PATCH "${STORM_GIT_VERSION_STRING}")
  329. string(REGEX REPLACE "^[0-9]+\\.[0-9]+\\.[0-9]+\\-([0-9]+)\\-.*" "\\1" STORM_VERSION_COMMITS_AHEAD "${STORM_GIT_VERSION_STRING}")
  330. string(REGEX REPLACE "^[0-9]+\\.[0-9]+\\.[0-9]+\\-[0-9]+\\-([a-z0-9]+).*" "\\1" STORM_VERSION_TAG_HASH "${STORM_GIT_VERSION_STRING}")
  331. string(REGEX REPLACE "^[0-9]+\\.[0-9]+\\.[0-9]+\\-[0-9]+\\-[a-z0-9]+\\-(.*)" "\\1" STORM_VERSION_APPENDIX "${STORM_GIT_VERSION_STRING}")
  332. if ("${STORM_VERSION_APPENDIX}" MATCHES "^.*dirty.*$")
  333. set(STORM_VERSION_DIRTY 1)
  334. else()
  335. set(STORM_VERSION_DIRTY 0)
  336. endif()
  337. if (STORM_VERSION_DIRTY)
  338. set(STORM_VERSION_DIRTY_STR "yes")
  339. else()
  340. set(STORM_VERSION_DIRTY_STR "no")
  341. endif()
  342. message(STATUS "storm - version is ${STORM_VERSION_MAJOR}.${STORM_VERSION_MINOR}.${STORM_VERSION_PATCH} (${STORM_VERSION_COMMITS_AHEAD} commits ahead of tag), building from git: ${STORM_VERSION_GIT_HASH} (dirty: ${STORM_VERSION_DIRTY_STR}).")
  343. # proper type conversion so we can assign it to an optional
  344. set(STORM_VERSION_GIT_HASH "std::string(\"${STORM_VERSION_GIT_HASH}\")")
  345. endif()
  346. # Configure a header file to pass some of the CMake settings to the source code
  347. configure_file (
  348. "${PROJECT_SOURCE_DIR}/storm-config.h.in"
  349. "${PROJECT_BINARY_DIR}/include/storm-config.h"
  350. )
  351. # Configure a source file to pass the storm version to the source code
  352. configure_file (
  353. "${PROJECT_SOURCE_DIR}/storm-version.cpp.in"
  354. "${PROJECT_SOURCE_DIR}/src/storm/utility/storm-version.cpp"
  355. )
  356. set(STORM_GENERATED_SOURCES "${PROJECT_BINARY_DIR}/src/storm/utility/storm-version.cpp")
  357. # Add the binary dir include directory for storm-config.h
  358. include_directories("${PROJECT_BINARY_DIR}/include")
  359. include(CTest)
  360. # Compiles all tests
  361. add_custom_target(tests)
  362. # Compiles and runs all tests
  363. add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND})
  364. set(CMAKE_CTEST_COMMAND_VERBOSE ${CMAKE_CTEST_COMMAND} -V)
  365. add_custom_target(check-verbose COMMAND ${CMAKE_CTEST_COMMAND_VERBOSE})
  366. add_dependencies(check tests)
  367. add_dependencies(check-verbose tests)
  368. set(STORM_TARGETS "")
  369. add_subdirectory(src)
  370. include(export)
  371. include(StormCPackConfig.cmake)