1 # Target name and AppID
2 ## TODO : set application name and PKG_ID
3 SET(this_target Settings)
11 /usr/include/security-server
16 FILE(GLOB ${this_target}_SOURCE_FILES src/*.cpp)
18 SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIE")
21 SET(CMAKE_EXECUTABLE_SUFFIX ".exe")
22 ADD_EXECUTABLE (${this_target} ${${this_target}_SOURCE_FILES})
24 # Set link libraries and link options
25 ## TODO : add more link libraries and options
26 TARGET_LINK_LIBRARIES(${this_target} -L/usr/lib/osp osp-appfw osp-uifw osp-ime osp-media osp-content osp-image osp-telephony osp-net osp-wifi osp-bluetooth osp-nfc xml2 pthread vconf security-server-client)
27 TARGET_LINK_LIBRARIES(${this_target} -Xlinker --allow-shlib-undefined -pthread -pie)
29 # Copy info, data, res, and icons directories
30 INSTALL(TARGETS ${this_target} DESTINATION ../usr/apps/${PKG_ID}/bin)
33 INSTALL(FILES ${CMAKE_SOURCE_DIR}/manifest.xml DESTINATION ../usr/apps/${PKG_ID}/info)
34 INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/res DESTINATION ../usr/apps/${PKG_ID})
35 INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/shared DESTINATION ../usr/apps/${PKG_ID})