CMAKE_MINIMUM_REQUIRED(VERSION 2.6) # Target name and PKGID ## TODO : set application name and ID SET(this_target Messages) SET(PKGID 8r4r5ddzzn) # include directory INCLUDE_DIRECTORIES( /usr/include/msg-service /usr/include/osp inc ) # Source files FILE(GLOB ${this_target}_SOURCE_FILES src/*.cpp ) SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIE") # Create executable SET(CMAKE_EXECUTABLE_SUFFIX ".exe") ADD_EXECUTABLE (${this_target} ${${this_target}_SOURCE_FILES}) # Set link libraries and link options ## TODO : add more link libraries and options TARGET_LINK_LIBRARIES(${this_target} -L/usr/lib/osp osp-appfw osp-uifw osp-social osp-media osp-image osp-content osp-telephony osp-shell osp-shell-core msg_mapi) TARGET_LINK_LIBRARIES(${this_target} -Xlinker --allow-shlib-undefined -pthread -pie) # Copy info, data, res, and icons directories INSTALL(TARGETS ${this_target} DESTINATION ../usr/apps/${PKGID}/bin) # Copy resource INSTALL(FILES ${CMAKE_SOURCE_DIR}/manifest.xml DESTINATION ../usr/apps/${PKGID}/info) INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/res DESTINATION ../usr/apps/${PKGID}) INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/shared DESTINATION ../usr/apps/${PKGID})