INCLUDE(FindPkgConfig)
-pkg_check_modules(pkgs_font REQUIRED ecore ecore-file evas elementary appcore-common appcore-efl ui-gadget-1 capi-appfw-application
-sysman fontconfig libxml-2.0)
+pkg_check_modules(pkgs_font REQUIRED ecore ecore-file evas elementary appcore-common appcore-efl ui-gadget-1 capi-appfw-application
+sysman fontconfig libxml-2.0 capi-system-system-settings)
FOREACH(flag ${pkgs_font_CFLAGS})
SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
ADD_DEFINITIONS("-DPREFIX=\"${CMAKE_INSTALL_PREFIX}\"")
ADD_DEFINITIONS("-DSLP_DEBUG")
+ADD_DEFINITIONS("-fpie")
SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib")
ADD_LIBRARY(${SETTING_FONT_UG} SHARED
./src/setting-font.c
./src/setting-font-main.c
+ ./src/setting-font-font-size.c
)
TARGET_LINK_LIBRARIES(${SETTING_FONT_UG} -L${CMAKE_BINARY_DIR}/${SETTING_COMMON} -lsetting-common)
TARGET_LINK_LIBRARIES(${SETTING_FONT_UG} ${pkgs_font_LDFLAGS})
-INSTALL(TARGETS ${SETTING_FONT_UG} DESTINATION /opt/ug/lib)
+INSTALL(TARGETS ${SETTING_FONT_UG} DESTINATION /usr/ug/lib)