Tizen 2.0 Release
[apps/osp/Internet.git] / CMakeLists.txt
1 # Target name and AppID
2 ## TODO : set application name and ID
3 SET(this_target Internet)
4 SET(APPID kmcele1k0n)
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-web osp-image osp-net 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/${APPID}/bin)
28
29 # Copy resource
30 INSTALL(FILES ${CMAKE_SOURCE_DIR}/manifest.xml DESTINATION ../usr/apps/${APPID}/info)
31 INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/res DESTINATION ../usr/apps/${APPID})
32 INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/shared DESTINATION ../usr/apps/${APPID})