BuildSlave.cmake 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. ##########################################################################
  2. # Boost Build Slave Support #
  3. ##########################################################################
  4. # Copyright (C) 2008 Troy D. Straszheim #
  5. # #
  6. # Distributed under the Boost Software License, Version 1.0. #
  7. # See accompanying file LICENSE_1_0.txt or copy at #
  8. # http://www.boost.org/LICENSE_1_0.txt #
  9. ##########################################################################
  10. #
  11. # Quick configuration of build slaves.
  12. #
  13. # 1. Copy this file to your (empty, newly created) build directory
  14. # 2. Customize below where you see CUSTOMIZE
  15. # 3. Use this file to populate your build directory. From the build
  16. # directory execute:
  17. #
  18. # cmake -C path/to/this/file ../path/to/source/directory
  19. #
  20. # e.g.
  21. #
  22. # cmake -C BuildSlave.cmake ../src
  23. #
  24. message (STATUS "Reading initial cache for build slaves.")
  25. #
  26. # CUSTOMIZE
  27. #
  28. set(BOOST_BUILD_SLAVE_CONTACT_INFO "buildmeister@example.com"
  29. CACHE STRING "who to contact with questions" FORCE)
  30. set(BOOST_BUILD_SLAVE_HOSTNAME "descriptive.name.of.host.example.com"
  31. CACHE STRING "descriptive hostname" FORCE)
  32. #
  33. # CUSTOMIZE: Either set this to the path of an existing file
  34. # (relative to build directory) or create the file slave-description.txt
  35. #
  36. set(BOOST_BUILD_SLAVE_DETAILS_FILE "slave-description.txt"
  37. CACHE STRING "file containing details about the build/platform" FORCE)
  38. #
  39. # Below this line oughtn't require customization.
  40. #
  41. if(EXISTS ${BOOST_BUILD_SLAVE_DETAILS_FILE})
  42. message(STATUS "Will take build details from ${BOOST_BUILD_SLAVE_DETAILS_FILE}")
  43. else(EXISTS ${BOOST_BUILD_SLAVE_DETAILS_FILE})
  44. message(FATAL_ERROR "Please configure BOOST_BUILD_SLAVE_DETAILS_FILE (${BOOST_BUILD_SLAVE_DETAILS_FILE}) and create this file")
  45. endif(EXISTS ${BOOST_BUILD_SLAVE_DETAILS_FILE})
  46. if(WIN32)
  47. set(CMAKE_GENERATOR "NMake Makefiles" CACHE INTERNAL "generator" FORCE)
  48. set(CMAKE_MAKE_PROGRAM "nmake" CACHE INTERNAL "nmake" FORCE)
  49. endif(WIN32)
  50. set(BUILD_TESTING ON
  51. CACHE BOOL "build testing" FORCE)
  52. set(BOOST_BUILD_SLAVE ON
  53. CACHE BOOL "build slave mode" FORCE)
粤ICP备19079148号