Lock screen password protection feature
[apps/osp/Settings.git] / CMakeLists.txt
1 # Target name and AppID
2 ## TODO : set application name and PKG_ID
3 SET(this_target Settings)
4 SET(PKG_ID kto5jikgul)
5
6 # include directory
7 INCLUDE_DIRECTORIES(
8         /usr/include/osp
9         /usr/include/libxml2
10         /usr/include/vconf
11         /usr/include/security-server
12         inc
13   )
14
15 # Source files
16 FILE(GLOB ${this_target}_SOURCE_FILES src/*.cpp)
17
18 SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIE")
19
20 # Create executable
21 SET(CMAKE_EXECUTABLE_SUFFIX ".exe")
22 ADD_EXECUTABLE (${this_target} ${${this_target}_SOURCE_FILES})
23
24 # Set link libraries and link options
25 ## TODO : add more link libraries and options
26 TARGET_LINK_LIBRARIES(${this_target} -L/usr/lib/osp osp-appfw osp-uifw osp-ime osp-media osp-content osp-image osp-telephony osp-net osp-wifi osp-bluetooth osp-nfc xml2 pthread vconf security-server-client)
27 TARGET_LINK_LIBRARIES(${this_target} -Xlinker --allow-shlib-undefined -pthread -pie)
28
29 # Copy info, data, res, and icons directories
30 INSTALL(TARGETS ${this_target} DESTINATION ../usr/apps/${PKG_ID}/bin)
31
32 # Copy resource
33 INSTALL(FILES ${CMAKE_SOURCE_DIR}/manifest.xml DESTINATION ../usr/apps/${PKG_ID}/info)
34 INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/res DESTINATION ../usr/apps/${PKG_ID})
35 INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/shared DESTINATION ../usr/apps/${PKG_ID})