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.

40 lines
1.1 KiB

  1. include_directories(.)
  2. add_executable(mc mc.c getrss.h getrss.c)
  3. target_link_libraries(mc sylvan)
  4. add_executable(lddmc lddmc.c getrss.h getrss.c)
  5. target_link_libraries(lddmc sylvan)
  6. add_executable(ldd2bdd ldd2bdd.c)
  7. target_link_libraries(ldd2bdd sylvan)
  8. add_executable(nqueens nqueens.c)
  9. target_link_libraries(nqueens sylvan)
  10. add_executable(simple simple.cpp)
  11. target_link_libraries(simple sylvan stdc++)
  12. include(CheckIncludeFiles)
  13. check_include_files("gperftools/profiler.h" HAVE_PROFILER)
  14. if(HAVE_PROFILER)
  15. set_target_properties(mc PROPERTIES COMPILE_DEFINITIONS "HAVE_PROFILER")
  16. target_link_libraries(mc profiler)
  17. set_target_properties(lddmc PROPERTIES COMPILE_DEFINITIONS "HAVE_PROFILER")
  18. target_link_libraries(lddmc profiler)
  19. set_target_properties(nqueens PROPERTIES COMPILE_DEFINITIONS "HAVE_PROFILER")
  20. target_link_libraries(nqueens profiler)
  21. endif()
  22. if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
  23. # add argp library for OSX
  24. target_link_libraries(mc argp)
  25. target_link_libraries(lddmc argp)
  26. target_link_libraries(ldd2bdd argp)
  27. target_link_libraries(nqueens argp)
  28. endif()