Merge "Remove 2.0 appcontrol operations and modify bugs of new appcontrol operations...
[apps/osp/Calendar.git] / CMakeLists.txt
1 # Target name and PKGID
2 SET(this_target Calendar)
3 SET(PKGID ph1vq2phrp)
4
5 # include directory
6 INCLUDE_DIRECTORIES(
7         /usr/include/osp
8         inc
9         )
10
11 # Source files
12 FILE(GLOB ${this_target}_SOURCE_FILES src/*.cpp)
13
14 SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIE")
15
16 # Create executable
17 SET(CMAKE_EXECUTABLE_SUFFIX ".exe")
18 ADD_EXECUTABLE (${this_target} ${${this_target}_SOURCE_FILES})
19
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)
23
24 # Copy info, data, res, and Icons directories
25 INSTALL(TARGETS ${this_target} DESTINATION ../usr/apps/${PKGID}/bin)
26
27 # Copy resource
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})