# Target name and PKGID SET(this_target Calendar) SET(PKGID ph1vq2phrp) # include directory INCLUDE_DIRECTORIES( /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 TARGET_LINK_LIBRARIES(${this_target} -L/usr/lib/osp osp-appfw osp-media osp-image osp-uifw osp-social) TARGET_LINK_LIBRARIES(${this_target} -Xlinker --allow-shlib-undefined -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})