mirror of
https://github.com/chris2511/xca.git
synced 2026-09-12 19:51:05 +05:00
Why? - QT will switch from qmake to cmake sooner or later. - autotools are good for unix-ish systems, cmake also for macOS and Xcode as well as Windows and VS-code - Cross compiling the windows-binaries on linux is not very helpful to attract windows-centric developers. Also drop qmake's xca.pro Generate man-page and sphinx sources of commandline arguments during build by executing xca (xcadoc.cpp). Generating Version-patchlevel and git hash is now also OS independent.
14 lines
488 B
CMake
14 lines
488 B
CMake
|
|
if (SRC AND DST)
|
|
file(READ ${SRC} DB_SCHEMA)
|
|
string(REPLACE "<<" "" DB_SCHEMA "${DB_SCHEMA}")
|
|
string(REPLACE "\\\"" "'" DB_SCHEMA "${DB_SCHEMA}")
|
|
string(REPLACE "//" "--" DB_SCHEMA "${DB_SCHEMA}")
|
|
string(REPLACE "\"" " " DB_SCHEMA "${DB_SCHEMA}")
|
|
string(REGEX REPLACE "^[ \t\r\n]+schemas\\[(.*)\\].*"
|
|
" -- Schema Version \\1" DB_SCHEMA "${DB_SCHEMA}")
|
|
file(WRITE ${DST} "${DB_SCHEMA}")
|
|
else()
|
|
message(FATAL_ERROR "Mandatory FILE or SRC variable not defined")
|
|
endif()
|