Remove compile option for gcc 4.8
[platform/framework/native/installer.git] / plugin / CMakeLists.txt
1 SET(this_target osp-installer-plugin)
2
3 INCLUDE_DIRECTORIES(
4         /usr/include/osp
5         /usr/include/osp/app
6         /usr/include/osp/base
7         ../inc
8
9
10 SET(${this_target}_SOURCE_FILES
11     osp-installer-plugin.cpp
12 )
13
14 ADD_LIBRARY(${this_target} SHARED ${${this_target}_SOURCE_FILES})
15
16 ADD_DEPENDENCIES(${this_target} osp-installer)
17
18 TARGET_LINK_LIBRARIES(${this_target} "-L/usr/lib/osp -losp-appfw -lpkgmgr_installer" -Wl,--allow-shlib-undefined)
19
20 SET_TARGET_PROPERTIES(${this_target} PROPERTIES LINK_FLAGS "-Wl,--as-needed -Wl,--hash-style=both")
21 SET_TARGET_PROPERTIES(${this_target} PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${EXECUTABLE_OUTPUT_PATH}")
22
23 INSTALL(TARGETS ${this_target} DESTINATION lib)