SET (this_target osp-connectivity-service)
SET (APPID 57r43275q7)
+INCLUDE(FindPkgConfig)
+pkg_check_modules(${this_target} REQUIRED osp-appfw-server osp-system-server osp-wifi ecore-x wifi-direct vconf tapi pkgmgr osp-telephony osp-nfc osp-net osp-bluetooth osp-appfw glib-2.0 evas ecore chromium capi-telephony-sim capi-system-info capi-system-device capi-network-wifi capi-network-nfc capi-network-connection capi-network-bluetooth capi-appfw-app-manager)
+
SET(CMAKE_EXECUTABLE_SUFFIX ".exe")
SET(EXECUTABLE_OUTPUT_PATH "${CMAKE_CURRENT_SOURCE_DIR}/output")
INCLUDE_DIRECTORIES (
- /usr/include/glib-2.0
- /usr/lib/glib-2.0/include
+ ${${this_target}_INCLUDE_DIRS}
/usr/include/osp
/usr/include/osp/app
/usr/include/osp/base
/usr/include/osp/net
/usr/include/osp/telephony
/usr/include/osp/server
- /usr/include/chromium
- /usr/include/vconf
- /usr/include/appfw
- /usr/include/ecore-1
- /usr/include/evas-1
- /usr/include/eina-1
- /usr/include/eina-1/eina
- /usr/include/bt-service
- /usr/include/system
- /usr/include/wifi
- /usr/include/wifi-direct
- /usr/include/network
- /usr/include/telephony
- /usr/include/telephony-client
inc
)
## Create Library
ADD_EXECUTABLE (${this_target} ${${this_target}_SOURCE_FILES})
-
-TARGET_LINK_LIBRARIES(${this_target} -Xlinker --no-undefined -Xlinker --as-needed -pie)
-TARGET_LINK_LIBRARIES(${this_target} -Xlinker --version-script=${CMAKE_CURRENT_SOURCE_DIR}/system-service-export.ver)
-TARGET_LINK_LIBRARIES(${this_target} -L/usr/lib/osp -losp-appfw -losp-net -losp-wifi -lchromium -lcapi-network-wifi -lcapi-network-bluetooth -lcapi-network-connection -lcapi-network-nfc -lwifi-direct -lvconf -lcapi-telephony-sim -ltapi -lecore_x -lcapi-appfw-app-manager)
-TARGET_LINK_LIBRARIES(${this_target} "-L/usr/lib/osp-server -losp-appfw-server")
+TARGET_LINK_LIBRARIES(${this_target} ${${this_target}_LDFLAGS} ${${this_target}_LIBRARIES})
## Cory additional info
INSTALL(TARGETS ${this_target} DESTINATION ../usr/apps/${APPID}/bin)