blob: 0fc6e638df450a93ed99a6f0c099176b43cb5fc4 (
plain)
1
2
3
4
5
6
7
8
9
10
|
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 )
|