mirror of
https://github.com/redstrate/Novus.git
synced 2025-04-26 05:37:46 +00:00
18 lines
613 B
Text
18 lines
613 B
Text
|
add_library(NovusCommon STATIC)
|
||
|
target_sources(NovusCommon PRIVATE
|
||
|
include/aboutwindow.h
|
||
|
src/aboutwindow.cpp)
|
||
|
target_include_directories(NovusCommon PUBLIC
|
||
|
include
|
||
|
PRIVATE
|
||
|
${CMAKE_BINARY_DIR})
|
||
|
target_link_libraries(NovusCommon PUBLIC Qt5::Core Qt5::Widgets)
|
||
|
|
||
|
# meant for including the license text
|
||
|
file(READ ${CMAKE_CURRENT_SOURCE_DIR}/../LICENSE LICENSE_TXT)
|
||
|
STRING(REPLACE "\n" " \\n" LICENSE_TXT ${LICENSE_TXT})
|
||
|
STRING(REPLACE "\"" "\"\"" LICENSE_TXT ${LICENSE_TXT})
|
||
|
|
||
|
configure_file(${CMAKE_CURRENT_LIST_DIR}/../cmake/license.h.in
|
||
|
${CMAKE_BINARY_DIR}/license.h)
|