mirror of
https://invent.kde.org/graphics/okular
synced 2024-11-05 18:34:53 +00:00
7d15dc1ae6
Remove unnecessary calls Convert necessary calls to target_include_directories
57 lines
1.5 KiB
CMake
57 lines
1.5 KiB
CMake
remove_definitions(-DTRANSLATION_DOMAIN="okular")
|
|
add_definitions(-DTRANSLATION_DOMAIN="okular_dvi")
|
|
|
|
#add_definitions(-DDEBUG_DVIRENDERER -DDEBUG_RENDER -DDEBUG_PRESCAN -DDEBUG_PSGS -DDEBUG_FONTPOOL)
|
|
|
|
if (FREETYPE_FOUND)
|
|
add_definitions(-DHAVE_FREETYPE)
|
|
else (FREETYPE_FOUND)
|
|
remove_definitions(-DHAVE_FREETYPE)
|
|
endif (FREETYPE_FOUND)
|
|
|
|
########### next target ###############
|
|
|
|
set(okularGenerator_dvi_SRCS
|
|
generator_dvi.cpp
|
|
bigEndianByteReader.cpp
|
|
dviRenderer.cpp
|
|
dviRenderer_draw.cpp
|
|
dviRenderer_prescan.cpp
|
|
dviRenderer_dr.cpp
|
|
special.cpp
|
|
dviFile.cpp
|
|
dviPageInfo.cpp
|
|
psgs.cpp
|
|
# psheader.cpp # already included in psgs.cpp
|
|
glyph.cpp
|
|
TeXFont.cpp
|
|
TeXFontDefinition.cpp
|
|
vf.cpp
|
|
TeXFont_PFB.cpp
|
|
TeXFont_PK.cpp
|
|
TeXFont_TFM.cpp
|
|
util.cpp
|
|
pageSize.cpp
|
|
simplePageSize.cpp
|
|
length.cpp
|
|
fontEncoding.cpp
|
|
fontEncodingPool.cpp
|
|
fontMap.cpp
|
|
fontpool.cpp
|
|
dvisourcesplitter.cpp
|
|
dviexport.cpp
|
|
)
|
|
|
|
|
|
okular_add_generator(okularGenerator_dvi ${okularGenerator_dvi_SRCS})
|
|
|
|
target_link_libraries(okularGenerator_dvi okularcore KF5::I18n)
|
|
if (FREETYPE_FOUND)
|
|
target_link_libraries(okularGenerator_dvi Freetype::Freetype)
|
|
endif (FREETYPE_FOUND)
|
|
|
|
|
|
########### install files ###############
|
|
install( FILES okularDvi.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR} )
|
|
install( PROGRAMS okularApplication_dvi.desktop org.kde.mobile.okular_dvi.desktop DESTINATION ${KDE_INSTALL_APPDIR} )
|
|
install( FILES org.kde.okular-dvi.metainfo.xml DESTINATION ${KDE_INSTALL_METAINFODIR} )
|