Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
OgreTransporter authored and Snolandia committed Nov 22, 2024
1 parent a284b6f commit 49eecaa
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 34 deletions.
19 changes: 18 additions & 1 deletion lib/jkqtmathtext/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,24 @@ target_sources(${lib_name} PUBLIC FILE_SET HEADERS TYPE HEADERS

add_subdirectory(nodes)
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
jkqtplotter_installlibrary_new(${lib_name} ${libBaseName} ${CMAKE_CURRENT_LIST_DIR})
Expand Down
24 changes: 0 additions & 24 deletions lib/jkqtmathtext/resources/CMakeLists.txt

This file was deleted.

8 changes: 7 additions & 1 deletion lib/jkqtplotter/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,13 @@ target_sources(${lib_name} PUBLIC FILE_SET HEADERS TYPE HEADERS

add_subdirectory(graphs)
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
target_include_directories(${lib_name} PRIVATE ${JKQTPLOTTER_VERSION_FILE_DIR})
Expand Down
8 changes: 0 additions & 8 deletions lib/jkqtplotter/resources/CMakeLists.txt

This file was deleted.

0 comments on commit 49eecaa

Please sign in to comment.