SET(CMAKE_EXECUTABLE_SUFFIX ".exe")
SET(EXECUTABLE_OUTPUT_PATH "${CMAKE_CURRENT_SOURCE_DIR}/output")
+INCLUDE(FindPkgConfig)
+ pkg_check_modules(${this_target} REQUIRED
+ glib-2.0
+ provider
+ osp-appfw
+ osp-appfw-server
+ osp-shell
+ )
+
+
INCLUDE_DIRECTORIES (
- /usr/include/glib-2.0
- /usr/lib/glib-2.0/include
- /usr/include/provider
- /usr/include/appfw
- /usr/include/aul
- /usr/include/osp
- /usr/include/osp/app
- /usr/include/osp/base
- /usr/include/osp/io
- /usr/include/osp/system
- /usr/include/osp/security
- /usr/include/osp/shell
- /usr/include/osp/server
- /usr/include/chromium
+ ${${this_target}_INCLUDE_DIRS}
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 -lchromium -lprovider -losp-shell")
-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/${PACKAGEID}/bin)
-Name: osp-appwidget-service
+Name: osp-appwidget-service
Summary: osp appwidget service
-Version: 1.2.2.0
+Version: 1.2.2.1
Release: 2
Group: System/Libraries
License: Flora
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(provider)
BuildRequires: pkgconfig(osp-appfw)
+BuildRequires: pkgconfig(osp-appfw-server)
BuildRequires: pkgconfig(osp-uifw)
BuildRequires: pkgconfig(osp-image)
BuildRequires: pkgconfig(osp-shell)
-BuildRequires: osp-shell-internal-devel
-BuildRequires: osp-appfw-internal-devel
BuildRequires: hash-signer
# runtime requires