Applied latest source code
[apps/native/preloaded/Installer.git] / InstallerService / CMakeLists.txt
1 # Target name and AppID
2 SET(this_target InstallerService)
3 SET(PKG_ID D7eOJquGtL)
4
5 # include directory
6 INCLUDE_DIRECTORIES(
7         /usr/include/osp
8         inc
9   )
10
11 # Source files
12 FILE(GLOB ${this_target}_SOURCE_FILES src/*.cpp)
13
14 SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIE")
15
16 # Create executable
17 SET(CMAKE_EXECUTABLE_SUFFIX ".exe")
18 ADD_EXECUTABLE (${this_target} ${${this_target}_SOURCE_FILES})
19
20 # Set link libraries and link options
21 TARGET_LINK_LIBRARIES(${this_target} -L/usr/lib/osp osp-appfw osp-uifw osp-shell osp-shell-core pthread)
22 TARGET_LINK_LIBRARIES(${this_target} -Xlinker --allow-shlib-undefined -pthread -pie)
23
24 # Copy info, data, res, and icons directories
25 INSTALL(TARGETS ${this_target} DESTINATION ../usr/apps/${PKG_ID}/bin)
26
27 # Copy resource
28 INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/InstallerService/res DESTINATION ../usr/apps/${PKG_ID})
29