# Target name and PKGID ## TODO : set application name and ID SET(this_target Gallery) SET(PKGID ijudt7w61q) # 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 ## TODO : add more link libraries and options TARGET_LINK_LIBRARIES(${this_target} -L/usr/lib/osp osp-appfw osp-uifw osp-media osp-image osp-content pthread) 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})