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.

25 lines
984 B

  1. project(carlext)
  2. cmake_minimum_required(VERSION 3.3)
  3. include(ExternalProject)
  4. option(STORM_3RDPARTY_BINARY_DIR "3rd party bin dir")
  5. message(STORM_3RDPARTY_BINARY_DIR: ${STORM_3RDPARTY_BINARY_DIR})
  6. ExternalProject_Add(carl-config
  7. GIT_REPOSITORY https://github.com/smtrat/carl
  8. GIT_TAG master
  9. PREFIX here
  10. SOURCE_DIR source_dir
  11. BINARY_DIR ${STORM_3RDPARTY_BINARY_DIR}/carl
  12. CMAKE_ARGS -DCMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER} -DBOOST_INCLUDEDIR=${Boost_INCLUDE_DIRS} -DBOOST_LIBRARYDIR=${Boost_LIBRARY_DIRS} -DBoost_NO_SYSTEM_PATHS=ON -DEXPORT_TO_CMAKE=OFF -DTHREAD_SAFE=ON -DUSE_CLN_NUMBERS=ON -DUSE_GINAC=ON -DCMAKE_SKIP_INSTALL_ALL_DEPENDENCY=ON -DCMAKE_INSTALL_PREFIX:PATH=${STORM_3RDPARTY_BINARY_DIR}/carl
  13. BUILD_IN_SOURCE 0
  14. LOG_UPDATE OFF
  15. LOG_CONFIGURE OFF
  16. BUILD_COMMAND "" # Disable build step.
  17. INSTALL_COMMAND "" # Disable install step too.
  18. )
  19. add_custom_target(build-carl)
  20. add_dependencies(build-carl carl-config)
  21. message("done")