1 # Target name and PKGID
2 ## TODO : set application name and ID
3 SET(this_target ImageViewer)
13 FILE(GLOB ${this_target}_SOURCE_FILES src/*.cpp)
15 SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIE")
18 SET(CMAKE_EXECUTABLE_SUFFIX ".exe")
19 ADD_EXECUTABLE (${this_target} ${${this_target}_SOURCE_FILES})
21 # Set link libraries and link options
22 ## TODO : add more link libraries and options
23 TARGET_LINK_LIBRARIES(${this_target} -L/usr/lib/osp osp-appfw osp-uifw osp-media osp-content osp-image osp-social pthread)
24 TARGET_LINK_LIBRARIES(${this_target} -Xlinker --allow-shlib-undefined -pthread -pie)
26 # Copy info, data, res, and icons directories
27 INSTALL(TARGETS ${this_target} DESTINATION ../usr/apps/${PKGID}/bin)
30 INSTALL(FILES ${CMAKE_SOURCE_DIR}/manifest.xml DESTINATION ../usr/apps/${PKGID}/info)
31 INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/res DESTINATION ../usr/apps/${PKGID})
32 INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/shared DESTINATION ../usr/apps/${PKGID})