[cmake] Make pango include dirs public.

This commit is contained in:
Egor Pugin 2020-12-31 20:47:34 +03:00
parent 9eb52625cd
commit 2c84c4beb2

View File

@ -311,8 +311,8 @@ if (SW_BUILD)
target_link_libraries (pango_training PUBLIC org.sw.demo.gnome.pango.pangocairo) target_link_libraries (pango_training PUBLIC org.sw.demo.gnome.pango.pangocairo)
else() else()
if (PKG_CONFIG_FOUND) if (PKG_CONFIG_FOUND)
target_include_directories (pango_training BEFORE PRIVATE ${Cairo_INCLUDE_DIRS} ${Pango_INCLUDE_DIRS}) target_include_directories (pango_training BEFORE PUBLIC ${Cairo_INCLUDE_DIRS} ${Pango_INCLUDE_DIRS})
target_compile_definitions (pango_training PRIVATE -DPANGO_ENABLE_ENGINE) target_compile_definitions (pango_training PUBLIC -DPANGO_ENABLE_ENGINE)
target_link_libraries (pango_training PUBLIC target_link_libraries (pango_training PUBLIC
${Pango_LIBRARIES} ${Pango_LIBRARIES}
${Cairo_LIBRARIES} ${Cairo_LIBRARIES}