# Target name and AppID ## TODO : set application name and PKG_ID SET(this_target Settings) SET(PKG_ID kto5jikgul) # include directory INCLUDE_DIRECTORIES( /usr/include/osp /usr/include/libxml2 /usr/include/vconf /usr/include/security-server inc ) # Source files FILE(GLOB ${this_target}_SOURCE_FILES src/*.cpp) SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIE") # Create executable SET(CMAKE_EXECUTABLE_SUFFIX ".exe") ADD_EXECUTABLE (${this_target} ${${this_target}_SOURCE_FILES}) # Set link libraries and link options ## TODO : add more link libraries and options 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) TARGET_LINK_LIBRARIES(${this_target} -Xlinker --allow-shlib-undefined -pthread -pie) # Copy info, data, res, and icons directories INSTALL(TARGETS ${this_target} DESTINATION ../usr/apps/${PKG_ID}/bin) # Copy resource INSTALL(FILES ${CMAKE_SOURCE_DIR}/manifest.xml DESTINATION ../usr/apps/${PKG_ID}/info) INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/res DESTINATION ../usr/apps/${PKG_ID}) INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/shared DESTINATION ../usr/apps/${PKG_ID})