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.

38 lines
1.0 KiB

  1. cmake_minimum_required(VERSION 2.6)
  2. project(sylvan C CXX)
  3. include_directories(.)
  4. add_executable(mc mc.c getrss.h getrss.c)
  5. target_link_libraries(mc sylvan)
  6. add_executable(lddmc lddmc.c getrss.h getrss.c)
  7. target_link_libraries(lddmc sylvan)
  8. add_executable(simple simple.cpp)
  9. target_link_libraries(simple sylvan stdc++)
  10. if(USE_CARL)
  11. message(STATUS "Sylvan - Example for Storm enabled.")
  12. add_executable(storm-rf storm.cpp)
  13. target_link_libraries(storm-rf sylvan stdc++ ${carl_LIBRARIES})
  14. endif(USE_CARL)
  15. include(CheckIncludeFiles)
  16. check_include_files("gperftools/profiler.h" HAVE_PROFILER)
  17. if(HAVE_PROFILER)
  18. set_target_properties(mc PROPERTIES COMPILE_DEFINITIONS "HAVE_PROFILER")
  19. target_link_libraries(mc profiler)
  20. set_target_properties(lddmc PROPERTIES COMPILE_DEFINITIONS "HAVE_PROFILER")
  21. target_link_libraries(lddmc profiler)
  22. endif()
  23. if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
  24. # add argp library for OSX
  25. target_link_libraries(mc argp)
  26. target_link_libraries(lddmc argp)
  27. endif()