mirror of
https://github.com/eosswedenorg/antelope-keygen
synced 2026-07-03 11:53:41 +02:00
gui/CMakeLists.txt: Autogenerate gui_config.h from gui_config.h.in
This commit is contained in:
parent
2f16accbba
commit
099d6b3008
1 changed files with 12 additions and 0 deletions
|
|
@ -4,6 +4,18 @@ set( CMAKE_AUTOMOC ON )
|
||||||
set( CMAKE_AUTORCC ON )
|
set( CMAKE_AUTORCC ON )
|
||||||
set( CMAKE_AUTOUIC ON )
|
set( CMAKE_AUTOUIC ON )
|
||||||
|
|
||||||
|
# Autogenerate about config file
|
||||||
|
|
||||||
|
file( READ ${PROJECT_LICENSE_FILE} GUI_ABOUT_LICENSE )
|
||||||
|
|
||||||
|
string(REGEX REPLACE "^([^\n]+)" "<h2>\\1</h2>" GUI_ABOUT_LICENSE ${GUI_ABOUT_LICENSE})
|
||||||
|
string(REGEX REPLACE "\n\n([^\n]+)" "<p>\\1</p>" GUI_ABOUT_LICENSE ${GUI_ABOUT_LICENSE})
|
||||||
|
string(REGEX REPLACE "\n" "" GUI_ABOUT_LICENSE ${GUI_ABOUT_LICENSE})
|
||||||
|
string(REGEX REPLACE "\<(.+)\>" "- <a href=\"mailto:\\1\">\\1</a>" GUI_ABOUT_AUTHOR ${PROJECT_MAINTAINER})
|
||||||
|
|
||||||
|
configure_file(gui_about.h.in "${CMAKE_CURRENT_BINARY_DIR}/gui_about.h" @ONLY ESCAPE_QUOTES)
|
||||||
|
include_directories(${CMAKE_CURRENT_BINARY_DIR})
|
||||||
|
|
||||||
# --------------------------------
|
# --------------------------------
|
||||||
# Program
|
# Program
|
||||||
# --------------------------------
|
# --------------------------------
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue