1 # Target name and AppID
\r
2 ## TODO : set application name and ID
\r
3 SET(this_target Internet)
\r
4 SET(APPID kmcele1k0n)
\r
13 FILE(GLOB ${this_target}_SOURCE_FILES src/*.cpp)
\r
15 SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIE")
\r
18 SET(CMAKE_EXECUTABLE_SUFFIX ".exe")
\r
19 ADD_EXECUTABLE (${this_target} ${${this_target}_SOURCE_FILES})
\r
21 # Set link libraries and link options
\r
22 ## TODO : add more link libraries and options
\r
23 TARGET_LINK_LIBRARIES(${this_target} -L/usr/lib/osp osp-appfw osp-uifw osp-media osp-web osp-image osp-net pthread)
\r
24 TARGET_LINK_LIBRARIES(${this_target} -Xlinker --allow-shlib-undefined -pthread -pie)
\r
26 # Copy info, data, res, and icons directories
\r
27 INSTALL(TARGETS ${this_target} DESTINATION ../usr/apps/${APPID}/bin)
\r
30 INSTALL(FILES ${CMAKE_SOURCE_DIR}/manifest.xml DESTINATION ../usr/apps/${APPID}/info)
\r
31 INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/res DESTINATION ../usr/apps/${APPID})
\r
32 INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/shared DESTINATION ../usr/apps/${APPID})
\r
33 INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/data DESTINATION ../usr/apps/${PKG_ID})