1 # Target name and PKGID
2 SET(this_target Calendar)
12 FILE(GLOB ${this_target}_SOURCE_FILES src/*.cpp)
14 SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIE")
17 SET(CMAKE_EXECUTABLE_SUFFIX ".exe")
18 ADD_EXECUTABLE (${this_target} ${${this_target}_SOURCE_FILES})
20 # Set link libraries and link options
21 TARGET_LINK_LIBRARIES(${this_target} -L/usr/lib/osp osp-appfw osp-media osp-image osp-uifw osp-social)
22 TARGET_LINK_LIBRARIES(${this_target} -Xlinker --allow-shlib-undefined -pie)
24 # Copy info, data, res, and Icons directories
25 INSTALL(TARGETS ${this_target} DESTINATION ../usr/apps/${PKGID}/bin)
28 INSTALL(FILES ${CMAKE_SOURCE_DIR}/manifest.xml DESTINATION ../usr/apps/${PKGID}/info)
29 INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/res DESTINATION ../usr/apps/${PKGID})
30 INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/shared DESTINATION ../usr/apps/${PKGID})