INCLUDE(FindPkgConfig)
pkg_check_modules(system_pkgs REQUIRED
- capi-system-media-key
- capi-network-tethering
- capi-network-bluetooth
- capi-network-wifi
capi-media-sound-manager
+ capi-network-bluetooth
+ capi-network-wifi
+ capi-network-tethering
+ capi-system-device
+ capi-system-info
+ capi-system-media-key
+ capi-system-runtime-info
+ capi-system-system-settings
+ capi-telephony-sim
+ eina
+ elementary
+ haptic
+ icu-i18n
+ libxml-2.0
+ sysman
+ tapi
+ vconf
wifi-direct
)
## Create Library
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} osp-appfw)
+TARGET_LINK_LIBRARIES(${this_target} ${system_pkgs_LDFLAGS})
TARGET_LINK_LIBRARIES(${this_target} capi-network-tethering)
TARGET_LINK_LIBRARIES(${this_target} capi-network-bluetooth)
TARGET_LINK_LIBRARIES(${this_target} capi-network-wifi)
TARGET_LINK_LIBRARIES(${this_target} capi-media-sound-manager)
TARGET_LINK_LIBRARIES(${this_target} wifi-direct)
+TARGET_LINK_LIBRARIES(${this_target} sysman)
SET_TARGET_PROPERTIES(${this_target}
PROPERTIES