1 ############################################################################
3 # Copyright 2010-2014 BMW Car IT GmbH
4 # Copyright (C) 2013 DENSO CORPORATION
7 # Licensed under the Apache License, Version 2.0 (the "License");
8 # you may not use this file except in compliance with the License.
9 # You may obtain a copy of the License at
11 # http://www.apache.org/licenses/LICENSE-2.0
13 # Unless required by applicable law or agreed to in writing, software
14 # distributed under the License is distributed on an "AS IS" BASIS,
15 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 # See the License for the specific language governing permissions and
17 # limitations under the License.
19 ############################################################################
21 cmake_minimum_required (VERSION 2.6)
26 find_package(PkgConfig REQUIRED)
27 pkg_check_modules(WAYLAND_CLIENT wayland-client REQUIRED)
29 GET_TARGET_PROPERTY(IVI_EXTENSION_INCLUDE_DIRS ivi-extension-protocol INCLUDE_DIRECTORIES)
33 ${IVI_EXTENSION_INCLUDE_DIRS}
34 ${WAYLAND_CLIENT_INCLUDE_DIRS}
38 ${WAYLAND_CLIENT_LIBRARY_DIRS}
41 add_library(${PROJECT_NAME} SHARED
43 src/ilm_common_wayland_platform.c
46 target_link_libraries(${PROJECT_NAME}
47 ${WAYLAND_CLIENT_LIBRARIES}
50 add_dependencies(${PROJECT_NAME}
51 ${WAYLAND_CLIENT_LIBRARIES}
52 ivi-extension-protocol
56 TARGETS ${PROJECT_NAME}
57 LIBRARY DESTINATION lib
61 FILES ${CMAKE_SOURCE_DIR}/ivi-layermanagement-api/ilmCommon/include/ilm_common.h
62 ${CMAKE_SOURCE_DIR}/ivi-layermanagement-api/ilmCommon/include/ilm_types.h
63 ${CMAKE_SOURCE_DIR}/ivi-layermanagement-api/ilmCommon/include/ilm_platform.h
64 DESTINATION include/ilm
67 SET_TARGET_PROPERTIES(${PROJECT_NAME} PROPERTIES VERSION ${ILM_API_VERSION} SOVERSION ${ILM_API_VERSION})