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

bareos/bareos systemtests/CMakeLists.txt :290

configure_file(
    "ctest_custom_posttest-win.sh.in"
    "${CMAKE_CURRENT_BINARY_DIR}/ctest_custom_posttest.sh" @ONLY
    NEWLINE_STYLE UNIX
  )

OpenKneeboard/OpenKneeboard src/utilities/CMakeLists.txt :247

configure_file(
    "utility.manifest.in"
    "${MANIFEST_PATH}"
    @ONLY
    NEWLINE_STYLE UNIX
  )

root-project/root cmake/modules/RootConfiguration.cmake :581

configure_file(${CMAKE_SOURCE_DIR}/config/mimes.unix.in ${CMAKE_BINARY_DIR}/etc/root.mimes NEWLINE_STYLE UNIX)

google/filament third_party/dawn/third_party/glfw/CMake/GenerateMappings.cmake :46

configure_file("${template_path}" "${target_path}" @ONLY NEWLINE_STYLE UNIX)

mysql/mysql-server storage/ndb/clusterj/CMakeLists.txt :105

CONFIGURE_FILE(
      ${CMAKE_CURRENT_SOURCE_DIR}/clusterj-${CLUSTERJ_PROJECT}/pom.xml.in
      ${CMAKE_CURRENT_BINARY_DIR}/clusterj-${CLUSTERJ_PROJECT}/pom.xml
      @ONLY NEWLINE_STYLE UNIX)

aws/aws-sdk-cpp src/aws-cpp-sdk-core/CMakeLists.txt :40

configure_file("${CMAKE_CURRENT_SOURCE_DIR}/include/aws/core/SDKConfig.h.in"
               "${CMAKE_CURRENT_SOURCE_DIR}/include/aws/core/SDKConfig.h"
               NEWLINE_STYLE UNIX)

logicalclocks/rondb storage/ndb/clusterj/CMakeLists.txt :105

CONFIGURE_FILE(
      ${CMAKE_CURRENT_SOURCE_DIR}/clusterj-${CLUSTERJ_PROJECT}/pom.xml.in
      ${CMAKE_CURRENT_BINARY_DIR}/clusterj-${CLUSTERJ_PROJECT}/pom.xml
      @ONLY NEWLINE_STYLE UNIX)

neka-nat/cupoch third_party/GLFW/CMake/GenerateMappings.cmake :31

configure_file("${template_path}" "${target_path}" @ONLY NEWLINE_STYLE UNIX)

Slicer/SlicerGitSVNArchive Utilities/Scripts/SlicerWizard/CMakeLists.txt :12

configure_file(
  "__version__.py.in"
  "${CMAKE_CURRENT_SOURCE_DIR}/__version__.py"
  @ONLY
  NEWLINE_STYLE UNIX)

polardb/polardbx-engine extra/libevent/libevent-2.1.11-stable/CMakeLists.txt :984

configure_file(
    ${CMAKE_CURRENT_SOURCE_DIR}/event-config.h.cmake
    ${CMAKE_CURRENT_BINARY_DIR}/include/event2/event-config.h
        NEWLINE_STYLE UNIX)

longturn/freeciv21 cmake/FreecivInstall.cmake :206

configure_file(${CMAKE_SOURCE_DIR}/dist/net.longturn.freeciv21.modpack.desktop.in
                   net.longturn.freeciv21.modpack.desktop
                   @ONLY NEWLINE_STYLE UNIX)

GreatSQL/GreatSQL storage/ndb/clusterj/CMakeLists.txt :97

CONFIGURE_FILE(
    ${CMAKE_CURRENT_SOURCE_DIR}/pom.xml.in
    ${CMAKE_CURRENT_BINARY_DIR}/pom.xml
    @ONLY NEWLINE_STYLE UNIX)

scp-fs2open/fs2open.github.com lib/openxr/src/external/jsoncpp/CMakeLists.txt :106

configure_file("${PROJECT_SOURCE_DIR}/version.in"
    "${PROJECT_BINARY_DIR}/version"
    NEWLINE_STYLE UNIX)

yuanming-hu/spgrid_topo_opt external/glfw/CMake/GenerateMappings.cmake :31

configure_file("${template_path}" "${target_path}" @ONLY NEWLINE_STYLE UNIX)

swiftlang/swift stdlib/cmake/modules/AddSwiftStdlib.cmake :1569

configure_file(
        "${SWIFT_SOURCE_DIR}/stdlib/${PLIST_INFO_PLIST}.in"
        "${PLIST_INFO_PLIST_OUT}"
        @ONLY
        NEWLINE_STYLE UNIX)

WujekFoliarz/DualSenseY-v2 thirdparty/glfw/CMake/GenerateMappings.cmake :48

configure_file("${template_path}" "${target_path}" @ONLY NEWLINE_STYLE UNIX)

machinekit/machinekit-hal src/executables/bitfile/CMakeLists.txt :62

configure_file(${PYTHON_PROJECT} ${PACKAGE_NAME}/pyproject.toml @ONLY
                   NEWLINE_STYLE UNIX NO_SOURCE_PERMISSIONS)

zhongfq/cocos-lua frameworks/3rd/glfw/CMake/GenerateMappings.cmake :46

configure_file("${template_path}" "${target_path}" @ONLY NEWLINE_STYLE UNIX)

MiKTeX/miktex Admin/Config/CMakeLists.txt :29

configure_file(
    miktex-config.ini.in
    ${CMAKE_CURRENT_BINARY_DIR}/miktex-config.ini
    NEWLINE_STYLE UNIX
)

google/mysql-protobuf storage/ndb/clusterj/CMakeLists.txt :88

CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/pom.xml.in
                 ${CMAKE_CURRENT_BINARY_DIR}/pom.xml
                 @ONLY NEWLINE_STYLE UNIX)

CTSRD-CHERI/cheribsd contrib/ntp/sntp/libevent/CMakeLists.txt :937

configure_file(
    ${CMAKE_CURRENT_SOURCE_DIR}/event-config.h.cmake
    ${CMAKE_CURRENT_BINARY_DIR}/include/event2/event-config.h
        NEWLINE_STYLE UNIX)