1 # Target name and AppID
2 ## TODO : set application name and PKG_ID
3 SET(this_target Settings)
14 FILE(GLOB ${this_target}_SOURCE_FILES src/*.cpp)
16 SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIE")
19 SET(CMAKE_EXECUTABLE_SUFFIX ".exe")
20 ADD_EXECUTABLE (${this_target} ${${this_target}_SOURCE_FILES})
22 # Set link libraries and link options
23 ## TODO : add more link libraries and options
24 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)
25 TARGET_LINK_LIBRARIES(${this_target} -Xlinker --allow-shlib-undefined -pthread -pie)
27 # Copy info, data, res, and icons directories
28 INSTALL(TARGETS ${this_target} DESTINATION ../usr/apps/${PKG_ID}/bin)
31 INSTALL(FILES ${CMAKE_SOURCE_DIR}/manifest.xml DESTINATION ../usr/apps/${PKG_ID}/info)
32 INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/res DESTINATION ../usr/apps/${PKG_ID})
33 INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/shared DESTINATION ../usr/apps/${PKG_ID})