stuff-from-scratch/src/publishing/CMakeLists.txt
2023-01-24 17:15:25 +00:00

58 lines
No EOL
1.6 KiB
CMake

list(APPEND publishing_HEADERS
pdf/PdfDocument.h
pdf/PdfDocumentCatalog.h
pdf/PdfDictionary.h
pdf/PdfObject.h
pdf/PdfOutline.h
pdf/PdfPageTree.h
pdf/PdfPage.h
pdf/PdfStream.h
pdf/PdfXRefTable.h
pdf/PdfWriter.h
plotting/GraphPlotter.h
plotting/PlotNode.h
plotting/Plot.h
plotting/EquationNode.h
plotting/PlotSeriesNode.h
plotting/PlotCaptionNode.h
latex/LatexDocument.h
latex/LatexMathExpression.h
latex/LatexSymbols.h
DocumentConverter.h
)
list(APPEND publishing_LIB_INCLUDES
pdf/PdfDocument.cpp
pdf/PdfDocumentCatalog.cpp
pdf/PdfDictionary.cpp
pdf/PdfObject.cpp
pdf/PdfOutline.cpp
pdf/PdfPageTree.cpp
pdf/PdfPage.cpp
pdf/PdfStream.cpp
pdf/PdfXRefTable.cpp
pdf/PdfWriter.cpp
latex/LatexDocument.cpp
latex/LatexMathExpression.cpp
latex/LatexSymbols.cpp
plotting/GraphPlotter.h
plotting/PlotNode.cpp
plotting/Plot.cpp
plotting/EquationNode.cpp
plotting/PlotSeriesNode.cpp
plotting/PlotCaptionNode.cpp
DocumentConverter.cpp
)
add_library(publishing SHARED ${publishing_LIB_INCLUDES} ${publishing_INCLUDES} ${publishing_HEADERS})
target_include_directories(publishing PUBLIC
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_SOURCE_DIR}/pdf
${CMAKE_CURRENT_SOURCE_DIR}/plotting
${CMAKE_CURRENT_SOURCE_DIR}/latex
)
set_target_properties( publishing PROPERTIES WINDOWS_EXPORT_ALL_SYMBOLS ON )
target_link_libraries( publishing PUBLIC core web graphics visual_elements)
set_property(TARGET publishing PROPERTY FOLDER src)