Files
CMake/Tests/QtAutogen/AutogenOriginDependsOff/configure_content.cmake
T
2018-11-03 12:14:40 +01:00

11 lines
394 B
CMake

cmake_minimum_required(VERSION 3.10)
# Read mocs_compilation.cpp file into variable
file(READ "${MCF}" MOCS_COMPILATION)
string(REPLACE "\\" "\\\\" MOCS_COMPILATION "${MOCS_COMPILATION}" )
string(REPLACE "\"" "\\\"" MOCS_COMPILATION "${MOCS_COMPILATION}" )
string(REPLACE "\n" "\"\n\"" MOCS_COMPILATION "${MOCS_COMPILATION}" )
# Configure file
configure_file ( "${CF_IN}" "${CF_OUT}" @ONLY )