merge wrt-plugins-tizen_0.2.0-2
[profile/ivi/wrt-plugins-tizen.git] / src / standards / Tizen / Account / CMakeLists.txt
1 set(TARGET_NAME "wrt-plugins-tizen-1.0-account")
2 set(DESTINATION_NAME  "tizen-1.0-account")
3 set(TARGET_IMPL_NAME "wrt-plugins-tizen-1.0-account-impl")
4
5 include_directories(
6   ${INCLUDES_PLATFORM_IMPLEMENTATION_ACCOUNT}
7 )
8
9 set(CMAKE_INSTALL_RPATH
10   ${CMAKE_INSTALL_RPATH}
11   ${CMAKE_INSTALL_PREFIX}/${DESTINATION_NAME}
12 )
13
14 set(SRCS_IMPL
15   ${SRCS_PLATFORM_API_ACCOUNT}
16   ${SRCS_PLATFORM_IMPLEMENTATION_ACCOUNT}
17   ResponseDispatcher.cpp
18   AccountConverter.cpp
19   JSAccount.cpp
20 #  JSAccountService.cpp
21   JSAccountManager.cpp
22   JSFeatureArray.cpp
23   JSAccountServices.cpp
24   JSAccountServiceType.cpp
25   JSAccountServiceProvider.cpp
26   plugin_config.cpp
27 )
28
29 add_library(${TARGET_IMPL_NAME} SHARED ${SRCS_IMPL})
30 target_link_libraries(${TARGET_IMPL_NAME}
31   ${LIBS_PLATFORM_IMPLEMENTATION_ACCOUNT}
32   ${LIBS_COMMON}
33 )
34
35 set(SRCS
36   plugin_initializer.cpp
37 )
38
39 add_library(${TARGET_NAME} SHARED ${SRCS})
40 target_link_libraries(${TARGET_NAME}
41   ${TARGET_IMPL_NAME}
42 )
43
44 INSTALL(TARGETS ${TARGET_NAME} ${TARGET_IMPL_NAME} LIBRARY DESTINATION ${DESTINATION_NAME})
45 INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/config.xml DESTINATION ${DESTINATION_NAME})