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.

23 lines
589 B

2 months ago
  1. cmake_minimum_required(VERSION 3.0.0)
  2. project(carl-version)
  3. find_package(carl REQUIRED)
  4. find_package(carlparser QUIET)
  5. # Set configuration
  6. set(CARL_DIR ${carl_DIR})
  7. set(CARL_VERSION ${carl_VERSION})
  8. if(carlparser_FOUND)
  9. set(CARL_PARSER_DIR ${carl_parser_DIR})
  10. set(CARL_WITH_PARSER "True")
  11. else()
  12. set(CARL_PARSER_DIR "")
  13. set(CARL_WITH_PARSER "False")
  14. endif()
  15. if(CARL_USE_CLN_NUMBERS)
  16. set(CARL_WITH_CLN "True")
  17. else()
  18. set(CARL_WITH_CLN "False")
  19. endif()
  20. configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config.py.in ${CMAKE_CURRENT_BINARY_DIR}/generated/config.py @ONLY)