Change-Id: I74a640e7587c2b12d25fd4fc6182eb7f754fb2e8
Signed-off-by: Hyunwoo Kim <hwlove.kim@samsung.com>
SET (this_target osp-secure-element)
+INCLUDE(FindPkgConfig)
+pkg_check_modules(${this_target} REQUIRED osp-appfw smartcard-service smartcard-service-common)
+
SET(LIBRARY_OUTPUT_PATH ${CMAKE_SOURCE_DIR}/cmake_build_tmp/output)
INCLUDE_DIRECTORIES(
${SLP_INCLUDE_DIRS}
+ ${${this_target}_INCLUDE_DIRS}}
inc
src
src/inc
## SET LINKER FLAGS
SET(CMAKE_SHARED_LINKER_FLAGS -Wl,--no-undefined)
-TARGET_LINK_LIBRARIES(${this_target} "-lsmartcard-service" )
-TARGET_LINK_LIBRARIES(${this_target} "-lsmartcard-service-common" )
-TARGET_LINK_LIBRARIES(${this_target} "-L/usr/lib/osp -losp-appfw" )
+TARGET_LINK_LIBRARIES(${this_target} ${${this_target}_LDFLAGS} ${${this_target}_LIBRARIES} )
SET_TARGET_PROPERTIES(${this_target}
PROPERTIES