tizen beta release
[framework/web/wrt-plugins-common.git] / src / modules / packages / Camera / CMakeLists.txt
1 # Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
2 #
3 #    Licensed under the Apache License, Version 2.0 (the "License");
4 #    you may not use this file except in compliance with the License.
5 #    You may obtain a copy of the License at
6 #
7 #        http://www.apache.org/licenses/LICENSE-2.0
8 #
9 #    Unless required by applicable law or agreed to in writing, software
10 #    distributed under the License is distributed on an "AS IS" BASIS,
11 #    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 #    See the License for the specific language governing permissions and
13 #    limitations under the License.
14 #
15 macro(install_header_file HEADER_FILE)
16     INSTALL(FILES ${API_CAMERA_PATH}/${HEADER_FILE}
17         DESTINATION ${DESTINATION_HEADER_PREFIX}/Camera)
18 endmacro()
19
20 set(TARGET_NAME ${TARGET_MODULE_CAMERA})
21
22 pkg_search_module(wrt-plugin-api REQUIRED wrt-plugin-api>=0.7.0)
23
24 include_directories( ${wrt-plugin-api_INCLUDE_DIRS})
25
26 set(SRCS
27     ${SRCS_API_CAMERA}
28     ${SRCS_PLATFORM_IMPLEMENTATION_CAMERA}
29 )
30
31 add_library(${TARGET_NAME} SHARED ${SRCS})
32 target_link_libraries(${TARGET_NAME}
33    ${LIBS_COMMONS}
34    ${TARGET_COMMONS}
35 )
36 set_target_properties(${TARGET_NAME} PROPERTIES SOVERSION ${CMAKE_PACKAGE_VERSION})
37
38 INSTALL(TARGETS ${TARGET_NAME} LIBRARY DESTINATION
39     ${DESTINATION_LIB_PREFIX})
40
41 install_header_file(CameraFactory.h)
42 install_header_file(EventBeginRecording.h)
43 install_header_file(EventEndRecording.h)
44 install_header_file(EventGetCameras.h)
45 install_header_file(EventGetPreviewNode.h)
46 install_header_file(EventTakePicture.h)
47 install_header_file(ICamera.h)
48 install_header_file(ICameraFeature.h)
49 install_header_file(ICameraManager.h)
50 install_header_file(ICaptureOptions.h)
51 install_header_file(IFeatureValue.h)
52 install_header_file(SupportCameraPendingOperation.h)