X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fcore%2FCMakeLists.txt;h=c52328e711c66bebc78ca020bc2e0badf4a6ff9d;hb=c2dce50039c520c79a1b3152d5601dcbc314ef35;hp=3802b83bb1079d77cefbd24747b8f6a7282c6e16;hpb=1322fdbbc50df1c5022bf47aad6dd59c4e05aa54;p=platform%2Fframework%2Fnative%2Fshell.git diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt index 3802b83..c52328e 100644 --- a/src/core/CMakeLists.txt +++ b/src/core/CMakeLists.txt @@ -4,23 +4,26 @@ INCLUDE_DIRECTORIES( ${CMAKE_SOURCE_DIR}/inc ${CMAKE_SOURCE_DIR}/src/inc ${CMAKE_SOURCE_DIR}/src/core - /usr/include/chromium - /usr/include/osp - /usr/include/osp/app - /usr/include/osp/base - /usr/include/osp/io - /usr/include/osp/security /usr/include/osp/graphics - - /usr/include/appfw - /usr/include/notification - /usr/include/shortcut - /usr/include/vconf - /usr/include/badge - /usr/include/glib-2.0 - /usr/lib/glib-2.0/include ) +INCLUDE(FindPkgConfig) +pkg_check_modules(corepkgs REQUIRED + capi-appfw-application + capi-appfw-app-manager + badge + chromium + glib-2.0 + notification + osp-appfw + shortcut + vconf +) + +FOREACH(flag ${corepkgs_CFLAGS}) + SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}") +ENDFOREACH(flag) + SET (${this_target}_SOURCE_FILES FShellLockManager.cpp FShellNotificationManager.cpp @@ -51,15 +54,8 @@ ADD_LIBRARY (${this_target} SHARED ${${this_target}_SOURCE_FILES}) SET(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined -Wl,--as-needed") TARGET_LINK_LIBRARIES(${this_target} "-lpthread" ) -TARGET_LINK_LIBRARIES(${this_target} "-lchromium" ) -TARGET_LINK_LIBRARIES(${this_target} "-L/usr/lib/osp -losp-appfw" ) TARGET_LINK_LIBRARIES(${this_target} "-losp-uifw" ) -TARGET_LINK_LIBRARIES(${this_target} "-lcapi-appfw-application" ) -TARGET_LINK_LIBRARIES(${this_target} "-lcapi-appfw-app-manager" ) -TARGET_LINK_LIBRARIES(${this_target} "-lnotification" ) -TARGET_LINK_LIBRARIES(${this_target} "-lshortcut" ) -TARGET_LINK_LIBRARIES(${this_target} "-lvconf" ) -TARGET_LINK_LIBRARIES(${this_target} "-lbadge" ) +TARGET_LINK_LIBRARIES(${this_target} ${corepkgs_LDFLAGS}) SET_TARGET_PROPERTIES(${this_target} PROPERTIES