Build error corrected
[apps/osp/Call.git] / CMakeLists.txt
1 CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
2
3 # Target name and PKGID
4 ## TODO : set application name and ID
5 SET(this_target Call)
6 SET(PKGID nI2PLNdTwi)
7
8 # include directory
9 INCLUDE_DIRECTORIES(
10         /usr/include/glib-2.0
11         /usr/lib/glib-2.0/include
12         /usr/include/osp
13         /usr/include/vconf
14         /usr/include/media
15         /usr/include/telephony-client
16         /usr/include/contacts-svc
17         inc
18   )
19
20 # Source files
21 FILE(GLOB ${this_target}_SOURCE_FILES 
22          src/*.cpp
23 )
24
25 SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIE")
26
27
28 # Create executable
29 SET(CMAKE_EXECUTABLE_SUFFIX ".exe")
30 ADD_EXECUTABLE (${this_target} ${${this_target}_SOURCE_FILES})
31
32 # Set link libraries and link options
33 ## TODO : add more link libraries and options
34 TARGET_LINK_LIBRARIES(${this_target} -L/usr/lib/osp osp-appfw osp-uifw osp-social osp-messaging osp-media osp-image osp-image-core osp-telephony)
35 TARGET_LINK_LIBRARIES(${this_target} -L/usr/lib capi-media-sound-manager tapi vconf  contacts-service2)
36 TARGET_LINK_LIBRARIES(${this_target} -Xlinker --allow-shlib-undefined -pthread -pie)
37
38 # Copy info, data, res, and icons directories
39 INSTALL(TARGETS ${this_target} DESTINATION ../usr/apps/${PKGID}/bin)
40
41 # Copy resource
42 INSTALL(FILES ${CMAKE_SOURCE_DIR}/manifest.xml DESTINATION ../usr/apps/${PKGID}/info)
43 INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/res DESTINATION ../usr/apps/${PKGID})
44 INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/shared DESTINATION ../usr/apps/${PKGID})