cmake configure_file examples

Signatures

configure_file(<input> <output>
  [NO_SOURCE_PERMISSIONS | USE_SOURCE_PERMISSIONS |
  FILE_PERMISSIONS <permissions>...]
  [COPYONLY] [ESCAPE_QUOTES] [@ONLY]
[NEWLINE_STYLE [UNIX|DOS|WIN32|LF|CRLF] ])

Examples

DragonJoker/Castor3D source/Core/Castor3D/CMakeLists.txt :59

configure_file(
	${CASTOR_SOURCE_DIR}/include/Core/${PROJECT_NAME}/RequiredVersion.hpp.in
	${CASTOR_BINARY_DIR}/include/Core/${PROJECT_NAME}/RequiredVersion.hpp
	NEWLINE_STYLE LF
)

AMICI-dev/AMICI ThirdParty/SuiteSparse/AMD/CMakeLists.txt :240

configure_file (
        Config/AMD.pc.in
        AMD.pc.out
        @ONLY
        NEWLINE_STYLE LF )

google/filament third_party/libpng/CMakeLists.txt :375

configure_file(${CMAKE_CURRENT_SOURCE_DIR}/scripts/options.awk
                 ${CMAKE_CURRENT_BINARY_DIR}/scripts/options.awk
                 @ONLY
                 NEWLINE_STYLE LF)

GPSBabel/gpsbabel CMakeLists.txt :23

configure_file(gbversion.h.in gbversion.h @ONLY NEWLINE_STYLE LF)

OSVR/OSVR-Core src/osvr/GenerateXMacroFunction.cmake :8

configure_file("${INFILE}" "${OUTFILE}" @ONLY NEWLINE_STYLE LF)

celtera/avendish cmake/avendish.gstreamer.cmake :44

configure_file(
    "${AVND_SOURCE_DIR}/include/avnd/binding/gstreamer/prototype.cpp.in"
    "${CMAKE_BINARY_DIR}/${MAIN_OUT_FILE}_gstreamer.cpp"
    @ONLY
    NEWLINE_STYLE LF
  )

qt/qtbase cmake/QtWrapperScriptHelpers.cmake :283

configure_file("${CMAKE_CURRENT_SOURCE_DIR}/libexec/${script_name}.in"
            "${QT_BUILD_DIR}/${INSTALL_LIBEXECDIR}/${script_name}" @ONLY
            NEWLINE_STYLE LF)

DrTimothyAldenDavis/SuiteSparse COLAMD/CMakeLists.txt :57

configure_file ( "Config/colamd.h.in"
    "${PROJECT_SOURCE_DIR}/Include/colamd.h"
    NEWLINE_STYLE LF )

DrTimothyAldenDavis/GraphBLAS CMakeLists.txt :221

configure_file ( "Config/GraphBLAS_API_version.tex.in"
    "${PROJECT_SOURCE_DIR}/Doc/GraphBLAS_API_version.tex"
    NEWLINE_STYLE LF )

jlblancoc/suitesparse-metis-for-windows SuiteSparse/SPEX/CMakeLists.txt :74

configure_file ( "Config/SPEX.h.in"
    "${PROJECT_SOURCE_DIR}/Include/SPEX.h"
    NEWLINE_STYLE LF )

FalkorDB/FalkorDB deps/GraphBLAS/CMakeLists.txt :278

configure_file ( "Config/GB_JITpackage_NJIT.c.in"
        "${PROJECT_SOURCE_DIR}/JITpackage/GB_JITpackage.c"
        NEWLINE_STYLE LF )