Beta merge 2
[profile/ivi/wrt-plugins-tizen.git] / src / standards / Tizen / Tizen / CMakeLists.txt
1 set(TARGET_NAME       "wrt-plugins-tizen-1.0-tizen")
2 set(DESTINATION_NAME  "tizen-1.0-tizen")
3
4 pkg_search_module(wrt-plugins-plugin-manager REQUIRED wrt-plugins-plugin-manager)
5
6 include_directories(
7     ${wrt-plugins-plugin-manager_INCLUDE_DIRS}
8 )
9
10 set(SRCS
11   ${SRCS_PLATFORM_API_FILTER}
12   JSTizen.cpp
13   JSAttributeFilter.cpp
14   JSAttributeRangeFilter.cpp
15   JSCompositeFilter.cpp
16   JSAbstractFilterArray.cpp
17   JSSortMode.cpp
18   FilterConverter.cpp
19   JSSimpleCoordinates.cpp
20   JSFeature.cpp
21   JSFeatureParam.cpp
22   plugin_initializer.cpp
23   plugin_config.cpp
24   PluginOnDemandPriv.cpp
25   ../Common/JSTizenException.cpp
26   ../Common/TizenExceptionData.cpp
27   ../Common/JSTizenExceptionFactory.cpp
28   ../Common/JSGlobalContextFactory.cpp
29 )
30
31 add_library(${TARGET_NAME} SHARED ${SRCS})
32
33 target_link_libraries(${TARGET_NAME}
34     ${LIBS_WIDGETDB}
35     ${LIBS_COMMON}
36     ${wrt-plugins-plugin-manager_LIBRARIES})
37
38 INSTALL(TARGETS ${TARGET_NAME} LIBRARY DESTINATION ${DESTINATION_NAME})
39 INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/config.xml DESTINATION ${DESTINATION_NAME})