mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-24 10:52:51 +00:00

fixes some race-conditions, for reference:
9ed7286504
also the exit() call in case of failure to open the temporary file would
exit the program calling runRdb() (systemsettings for example) with
status 0 (normal, when an error ocurred), that is no longer the case
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
46 lines
911 B
CMake
46 lines
911 B
CMake
if(FONTCONFIG_FOUND)
|
|
include_directories(${FONTCONFIG_INCLUDE_DIR})
|
|
endif(FONTCONFIG_FOUND)
|
|
include_directories(${FREETYPE_INCLUDE_DIRS})
|
|
|
|
########### next target ###############
|
|
|
|
set(kcm_fonts_PART_SRCS
|
|
../krdb/krdb.cpp
|
|
fonts.cpp
|
|
${libkxftconfig_SRCS}
|
|
)
|
|
|
|
kde4_add_plugin(kcm_fonts ${kcm_fonts_PART_SRCS})
|
|
|
|
target_link_libraries(kcm_fonts
|
|
KDE4::kdeui
|
|
${QT_QTXML_LIBRARY}
|
|
${FREETYPE_LIBRARIES}
|
|
${X11_LIBRARIES}
|
|
)
|
|
|
|
if(FONTCONFIG_FOUND)
|
|
target_link_libraries(kcm_fonts ${FONTCONFIG_LIBRARIES})
|
|
endif(FONTCONFIG_FOUND)
|
|
|
|
########### install files ###############
|
|
|
|
install(
|
|
TARGETS kcm_fonts
|
|
DESTINATION ${KDE4_PLUGIN_INSTALL_DIR}
|
|
)
|
|
|
|
install(
|
|
FILES fonts.desktop
|
|
DESTINATION ${KDE4_SERVICES_INSTALL_DIR}
|
|
)
|
|
|
|
install(
|
|
FILES
|
|
data/aa_rgb.png
|
|
data/aa_bgr.png
|
|
data/aa_vrgb.png
|
|
data/aa_vbgr.png
|
|
DESTINATION ${KDE4_DATA_INSTALL_DIR}/kcmfonts/pics
|
|
)
|