CMAKE_MINIMUM_REQUIRED(VERSION 2.6) # Target name and PKGID ## TODO : set application name and ID SET(this_target Call) SET(PKGID nI2PLNdTwi) # include directory INCLUDE_DIRECTORIES( /usr/include/glib-2.0 /usr/lib/glib-2.0/include /usr/include/osp /usr/include/vconf /usr/include/media /usr/include/telephony-client /usr/include/contacts-svc 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-messaging osp-media osp-image osp-image-core osp-telephony) TARGET_LINK_LIBRARIES(${this_target} -L/usr/lib capi-media-sound-manager SLP-tapi vconf contacts-service2) 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})