Add DRAFT stubs for Vehicle plugin
[profile/ivi/wrt-plugins-tizen.git] / src / standards / Tizen / Application / CMakeLists.txt
1 set(TARGET_NAME "wrt-plugins-tizen-1.0-application")
2 set(DESTINATION_NAME "tizen-1.0-application")
3 set(TARGET_IMPL_NAME "wrt-plugins-tizen-1.0-application-impl")
4
5 include_directories(${INCLUDES_PLATFORM_IMPLEMENTATION_APPLICATION})
6
7 set(CMAKE_INSTALL_RPATH
8     ${CMAKE_INSTALL_RPATH}
9     ${CMAKE_INSTALL_PREFIX}/${DESTINATION_NAME}
10 )
11
12 set(SRCS_IMPL
13   ${SRCS_PLATFORM_API_APPLICATION}
14   ${SRCS_PLATFORM_IMPLEMENTATION_APPLICATION}
15   plugin_config.cpp  
16   ApplicationAnswerReceiver.cpp
17   ApplicationListener.cpp  
18   ApplicationConverter.cpp
19   ApplicationUtil.cpp
20   JSApplication.cpp
21   JSApplicationInformation.cpp
22   JSApplicationContext.cpp
23   JSApplicationService.cpp
24   JSApplicationServiceData.cpp
25   JSApplicationInstallInfo.cpp
26   LaunchServicePrivateData.cpp
27   ApplicationAsyncCallbackManager.cpp
28   ApplicationListenerManager.cpp
29 )
30
31 add_library(${TARGET_IMPL_NAME} SHARED ${SRCS_IMPL})
32
33 target_link_libraries(${TARGET_IMPL_NAME}
34   ${LIBS_COMMON}
35   ${LIBS_PLATFORM_IMPLEMENTATION_APPLICATION}
36 )
37
38 set(SRCS
39   plugin_initializer.cpp
40 )
41
42 add_library(${TARGET_NAME} SHARED ${SRCS})
43 target_link_libraries(${TARGET_NAME}
44   ${TARGET_IMPL_NAME}
45 )
46
47 INSTALL(TARGETS ${TARGET_NAME} ${TARGET_IMPL_NAME} LIBRARY DESTINATION ${DESTINATION_NAME})
48 INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/config.xml DESTINATION ${DESTINATION_NAME})
49