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.

28 lines
1.1 KiB

  1. cmake_minimum_required (VERSION 2.8.6)
  2. # Set project name
  3. project (cudd C CXX)
  4. # Main Sources
  5. file(GLOB_RECURSE CUDD_HEADERS ${PROJECT_SOURCE_DIR}/src/*.h)
  6. file(GLOB_RECURSE CUDD_HEADERS_CXX ${PROJECT_SOURCE_DIR}/src/*.hh)
  7. file(GLOB_RECURSE CUDD_SOURCES ${PROJECT_SOURCE_DIR}/src/*.c)
  8. file(GLOB_RECURSE CUDD_SOURCES_CXX ${PROJECT_SOURCE_DIR}/src/*.cc)
  9. # Add base folder for better inclusion paths
  10. include_directories("${PROJECT_SOURCE_DIR}/src")
  11. include_directories("${PROJECT_SOURCE_DIR}/src/cudd")
  12. include_directories("${PROJECT_SOURCE_DIR}/src/dddmp")
  13. include_directories("${PROJECT_SOURCE_DIR}/src/epd")
  14. include_directories("${PROJECT_SOURCE_DIR}/src/mtr")
  15. include_directories("${PROJECT_SOURCE_DIR}/src/nanotrav")
  16. include_directories("${PROJECT_SOURCE_DIR}/src/st")
  17. include_directories("${PROJECT_SOURCE_DIR}/src/util")
  18. if(MSVC)
  19. # required for GMM to compile, ugly error directive in their code
  20. add_definitions(/D_SCL_SECURE_NO_DEPRECATE /D_CRT_SECURE_NO_WARNINGS)
  21. endif()
  22. # Add the library
  23. add_library(cudd ${CUDD_SOURCES} ${CUDD_HEADERS} ${CUDD_HEADERS_CXX} ${CUDD_SOURCES_CXX})