upload tizen1.0 source
[framework/web/wrt-plugins-common.git] / src / modules / packages / Filesystem / 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_FILESYSTEM_PATH}/${HEADER_FILE}
17         DESTINATION ${DESTINATION_HEADER_PREFIX}/Filesystem)
18 endmacro()
19
20 set(TARGET_NAME ${TARGET_MODULE_FILESYSTEM})
21
22 set(SRCS
23   ${SRCS_API_FILESYSTEM}
24   ${SRCS_PLATFORM_IMPLEMENTATION_FILESYSTEM}
25 )
26
27 add_library(${TARGET_NAME} SHARED ${SRCS})
28 target_link_libraries(${TARGET_NAME}
29    ${LIBS_COMMONS}
30    ${TARGET_COMMONS}
31 )
32 set_target_properties(${TARGET_NAME} PROPERTIES 
33  SOVERSION ${CMAKE_PROJECT_API_VERSION}
34  VERSION ${CMAKE_PROJECT_VERSION}
35 )
36
37 INSTALL(TARGETS ${TARGET_NAME} LIBRARY DESTINATION
38     ${DESTINATION_LIB_PREFIX})
39
40 install_header_file(IManager.h)
41 install_header_file(INode.h)
42 install_header_file(INodeTypes.h)
43 install_header_file(IPath.h)
44 install_header_file(IStream.h)
45 install_header_file(EventResolve.h)
46 install_header_file(EventCopy.h)
47 install_header_file(EventMove.h)
48 install_header_file(EventRemove.h)
49 install_header_file(EventFind.h)
50 install_header_file(EventListNodes.h)
51 install_header_file(EventOpen.h)
52 install_header_file(EventReadText.h)
53 install_header_file(Enums.h)
54 install_header_file(NodeFilter.h)