Tizen 2.1 base
[apps/osp/ImageViewer.git] / CMakeLists.txt
1 # Target name and PKGID
2 ## TODO : set application name and ID
3 SET(this_target ImageViewer)
4 SET(PKGID jysyv9o1dc)
5
6 # include directory
7 INCLUDE_DIRECTORIES(
8         /usr/include/osp
9         inc
10   )
11
12 # Source files
13 FILE(GLOB ${this_target}_SOURCE_FILES src/*.cpp)
14
15 SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIE")
16
17 # Create executable
18 SET(CMAKE_EXECUTABLE_SUFFIX ".exe")
19 ADD_EXECUTABLE (${this_target} ${${this_target}_SOURCE_FILES})
20
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)
25
26 # Copy info, data, res, and icons directories
27 INSTALL(TARGETS ${this_target} DESTINATION ../usr/apps/${PKGID}/bin)
28
29 # Copy resource
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})