SET (this_target osp-security-service)
SET (APPID q7097a278m)
+INCLUDE(FindPkgConfig)
+pkg_check_modules(${this_target} REQUIRED
+ chromium
+ capi-system-media-key
+ capi-network-bluetooth
+ pkgmgr
+ glib-2.0
+ osp-appfw
+ vconf
+ vconf-internal-keys
+ osp-appfw-server
+ )
+
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
- /usr/include/osp
- /usr/include/osp/app
- /usr/include/osp/base
- /usr/include/osp/io
- /usr/include/chromium
- /usr/include/osp/security
- /usr/include/osp/server
- /usr/include
- /usr/include/vconf
+ ${${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)
-TARGET_LINK_LIBRARIES(${this_target} "-L/usr/lib/osp-server -losp-appfw-server")
-TARGET_LINK_LIBRARIES(${this_target} "-lvconf" )
TARGET_LINK_LIBRARIES(${this_target} "-ldl" )
+TARGET_LINK_LIBRARIES(${this_target} ${${this_target}_LDFLAGS} ${${this_target}_LIBRARIES})
+
## Cory additional info
INSTALL(TARGETS ${this_target} DESTINATION ../usr/apps/${APPID}/bin)
INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/manifest.xml DESTINATION ../usr/apps/${APPID}/info)
BuildRequires: pkgconfig(vconf)
BuildRequires: pkgconfig(vconf-internal-keys)
-BuildRequires: osp-appfw-internal-devel
+BuildRequires: pkgconfig(osp-appfw-server)
BuildRequires: hash-signer
# smack domain requires