configure.cmake 349 B

123456789101112131415
  1. # adds possibility to run configure_file as buildstep
  2. # reference:
  3. # http://www.cmake.org/pipermail/cmake/2012-May/050227.html
  4. #
  5. # This module expects
  6. # INFILE
  7. # OUTFILE
  8. # other custom vars
  9. #
  10. # example usage:
  11. # cmake -DINFILE=blah.in -DOUTFILE=blah.out -Dvar1=value1 -Dvar2=value2 -P scripts/configure.cmake
  12. configure_file(${INFILE} ${OUTFILE})