mirror of
https://github.com/jkriege2/JKQtPlotter.git
synced 2024-11-15 10:05:47 +08:00
parent
966a537f4a
commit
b349f07118
@ -32,7 +32,24 @@ target_sources(${lib_name} PUBLIC FILE_SET HEADERS TYPE HEADERS
|
|||||||
|
|
||||||
add_subdirectory(nodes)
|
add_subdirectory(nodes)
|
||||||
add_subdirectory(parsers)
|
add_subdirectory(parsers)
|
||||||
add_subdirectory(resources)
|
|
||||||
|
# add XITS as a ressource
|
||||||
|
if(JKQtPlotter_BUILD_INCLUDE_XITS_FONTS)
|
||||||
|
qt_add_resources(QRCSOURCES resources/xits.qrc)
|
||||||
|
target_sources(${lib_name} PRIVATE ${QRCSOURCES})
|
||||||
|
target_compile_definitions(${lib_name} PUBLIC JKQTMATHTEXT_COMPILED_WITH_XITS)
|
||||||
|
install(FILES "${CMAKE_CURRENT_LIST_DIR}/resources/xits/OFL.txt" DESTINATION ${CMAKE_INSTALL_DOCDIR} RENAME "${lib_name}_XITS_LICENSE.txt" )
|
||||||
|
install(FILES "${CMAKE_CURRENT_LIST_DIR}/resources/xits/README.md" DESTINATION ${CMAKE_INSTALL_DOCDIR} RENAME "${lib_name}_XITS_README.md" )
|
||||||
|
endif(JKQtPlotter_BUILD_INCLUDE_XITS_FONTS)
|
||||||
|
|
||||||
|
# add FIRAMATH as a ressource
|
||||||
|
if(JKQtPlotter_BUILD_INCLUDE_FIRAMATH_FONTS)
|
||||||
|
qt_add_resources(QRCSOURCES resources/firamath.qrc)
|
||||||
|
target_sources(${lib_name} PRIVATE ${QRCSOURCES})
|
||||||
|
target_compile_definitions(${lib_name} PUBLIC JKQTMATHTEXT_COMPILED_WITH_FIRAMATH)
|
||||||
|
install(FILES "${CMAKE_CURRENT_LIST_DIR}/resources/firaMath/LICENSE" DESTINATION ${CMAKE_INSTALL_DOCDIR} RENAME "${lib_name}_FIRAMATH_LICENSE" )
|
||||||
|
install(FILES "${CMAKE_CURRENT_LIST_DIR}/resources/firaMath/README.md" DESTINATION ${CMAKE_INSTALL_DOCDIR} RENAME "${lib_name}_FIRAMATH_README.md" )
|
||||||
|
endif(JKQtPlotter_BUILD_INCLUDE_FIRAMATH_FONTS)
|
||||||
|
|
||||||
# Installation
|
# Installation
|
||||||
jkqtplotter_installlibrary_new(${lib_name} ${libBaseName} ${CMAKE_CURRENT_LIST_DIR})
|
jkqtplotter_installlibrary_new(${lib_name} ${libBaseName} ${CMAKE_CURRENT_LIST_DIR})
|
||||||
|
@ -1,24 +0,0 @@
|
|||||||
cmake_minimum_required(VERSION 3.23)
|
|
||||||
|
|
||||||
|
|
||||||
# add XITS as aressource
|
|
||||||
if(JKQtPlotter_BUILD_INCLUDE_XITS_FONTS)
|
|
||||||
target_sources(${lib_name} PRIVATE
|
|
||||||
xits.qrc
|
|
||||||
)
|
|
||||||
target_compile_definitions(${lib_name} PUBLIC JKQTMATHTEXT_COMPILED_WITH_XITS)
|
|
||||||
install(FILES "${CMAKE_CURRENT_LIST_DIR}/xits/OFL.txt" DESTINATION ${CMAKE_INSTALL_DOCDIR} RENAME "${lib_name}_XITS_LICENSE.txt" )
|
|
||||||
install(FILES "${CMAKE_CURRENT_LIST_DIR}/xits/README.md" DESTINATION ${CMAKE_INSTALL_DOCDIR} RENAME "${lib_name}_XITS_README.md" )
|
|
||||||
endif(JKQtPlotter_BUILD_INCLUDE_XITS_FONTS)
|
|
||||||
|
|
||||||
|
|
||||||
# add FIRAMATH as aressource
|
|
||||||
if(JKQtPlotter_BUILD_INCLUDE_FIRAMATH_FONTS)
|
|
||||||
target_sources(${lib_name} PRIVATE
|
|
||||||
firamath.qrc
|
|
||||||
)
|
|
||||||
target_compile_definitions(${lib_name} PUBLIC JKQTMATHTEXT_COMPILED_WITH_FIRAMATH)
|
|
||||||
install(FILES "${CMAKE_CURRENT_LIST_DIR}/firaMath/LICENSE" DESTINATION ${CMAKE_INSTALL_DOCDIR} RENAME "${lib_name}_FIRAMATH_LICENSE" )
|
|
||||||
install(FILES "${CMAKE_CURRENT_LIST_DIR}/firaMath/README.md" DESTINATION ${CMAKE_INSTALL_DOCDIR} RENAME "${lib_name}_FIRAMATH_README.md" )
|
|
||||||
endif(JKQtPlotter_BUILD_INCLUDE_FIRAMATH_FONTS)
|
|
||||||
|
|
@ -68,7 +68,13 @@ target_sources(${lib_name} PUBLIC FILE_SET HEADERS TYPE HEADERS
|
|||||||
|
|
||||||
add_subdirectory(graphs)
|
add_subdirectory(graphs)
|
||||||
add_subdirectory(gui)
|
add_subdirectory(gui)
|
||||||
add_subdirectory(resources)
|
|
||||||
|
# add ressource
|
||||||
|
qt_add_resources(QRCSOURCES
|
||||||
|
resources/jkqtpbaseplotter.qrc
|
||||||
|
resources/jkqtpstyles.qrc
|
||||||
|
)
|
||||||
|
target_sources(${lib_name} PRIVATE ${QRCSOURCES})
|
||||||
|
|
||||||
# add version info
|
# add version info
|
||||||
target_include_directories(${lib_name} PRIVATE ${JKQTPLOTTER_VERSION_FILE_DIR})
|
target_include_directories(${lib_name} PRIVATE ${JKQTPLOTTER_VERSION_FILE_DIR})
|
||||||
|
@ -1,8 +0,0 @@
|
|||||||
cmake_minimum_required(VERSION 3.23)
|
|
||||||
|
|
||||||
|
|
||||||
# add aressource
|
|
||||||
target_sources(${lib_name} PRIVATE
|
|
||||||
jkqtpbaseplotter.qrc
|
|
||||||
jkqtpstyles.qrc
|
|
||||||
)
|
|
Loading…
Reference in New Issue
Block a user