summaryrefslogtreecommitdiff
path: root/src/navigation/navigation-core/locationinput-plugin/CMakeLists.txt
blob: 23d84303de68f85c45b7f4cee5d474c14b3edcf8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# @licence app begin@
# SPDX-License-Identifier: MPL-2.0
#
# \copyright Copyright (C) 2013-2014, PCA Peugeot Citroen
#
# \file CMakeLists.txt
#
# \brief This file is part of the build system.
#
# \author Martin Schaller <martin.schaller@it-schaller.de>
#
# \version 1.0
#
# This Source Code Form is subject to the terms of the
# Mozilla Public License (MPL), v. 2.0.
# If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.
#
# For further information see http://www.genivi.org/.
#
# List of changes:
# 
# <date>, <name>, <description of change>
#
# @licence end@
cmake_minimum_required(VERSION 2.8)
include(FindPkgConfig)
include(${navit_SOURCE_DIR}/cmake/navit_macros.cmake)
include_directories(${INCLUDE_DIRECTORIES})
include_directories(.)
include_directories(../../..)
include_directories(compat_includes)
include_directories(${navit_SOURCE_DIR}/..)
include_directories(${CMAKE_CURRENT_BINARY_DIR})
include_directories(${CMAKE_CURRENT_BINARY_DIR}/..)
link_directories(${CMAKE_CURRENT_SOURCE_DIR}/compat_libs)
add_definitions(-DPLUGIN=1)
pkg_search_module(DBUS_CPP dbus-c++-glib-1 dbus-c++-1)
pkg_search_module(GLIB glib-2.0)
include_directories(${GLIB_INCLUDE_DIRS})
include_directories(${DBUS_CPP_INCLUDE_DIRS})
set(genivi_navigationcore_locationinput_LIBS ${DBUS_CPP_LDFLAGS})
ADD_CUSTOM_COMMAND(OUTPUT genivi_navigationcore_locationinput_adaptor.h
		   COMMAND dbusxx-xml2cpp ${navigationcore_API}/genivi-navigationcore-locationinput.xml --adaptor=genivi_navigationcore_locationinput_adaptor.h
		   DEPENDS ${navigationcore_API}/genivi-navigationcore-locationinput.xml
		   )
module_add_library(genivi_navigationcore_locationinput genivi_navigationcore_locationinput.cxx genivi_navigationcore_locationinput_adaptor.h)