########################################################################### # @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 # # \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: # # , , # # @licence end@ ########################################################################### project(navigation) cmake_minimum_required(VERSION 2.8) message(STATUS "poi cam") include(FindPkgConfig) pkg_search_module(DBUS_CPP_GLIB dbus-c++-glib-1) pkg_search_module(DBUS_CPP dbus-c++-1) pkg_search_module(GLIB glib-2.0) include_directories(${GLIB_INCLUDE_DIRS}) include_directories(${DBUS_CPP_INCLUDE_DIRS}) include_directories(${DBUS_CPP_GLIB_INCLUDE_DIRS}) include(${PRELOAD_CACHE_FOR_PLUGINS}) include_directories(${NAVIT_DIR}) include_directories(.) include_directories(${CMAKE_CURRENT_BINARY_DIR}) include_directories(${NAVIT_CONFIG_H_DIR}) # this one contains config.h that is generated include_directories(${NAVIGATION_COMMON_DIR}) include_directories(${DBUS_GENERATED_INCLUDE_DIR}/poi-service) set(PLUGIN_LDFLAGS ${DBUS_CPP_LDFLAGS} ${DBUS_CPP_GLIB_LDFLAGS} ${GLIB_LDFLAGS}) set(PLUGIN_LIBRARIES ${DBUS_CPP_LIBRARY_DIRS} ${GLIB_LIBRARY_DIRS} ${DBUS_CPP_GLIB_LIBRARY_DIRS}) set(genivi_poiservice_cam_navit_LIBS ${PLUGIN_LDFLAGS}) set(genivi_poiservice_cam_navit_LIBRARY_DIRS ${PLUGIN_LIBRARIES}) add_definitions(-DPLUGIN=1) if(WITH_DEBUG) add_definitions("-DDEBUG_ENABLED=1") endif() # Suppress dev warnings if(NOT DEFINED CMAKE_SUPPRESS_DEVELOPER_WARNINGS) set(CMAKE_SUPPRESS_DEVELOPER_WARNINGS 1 CACHE INTERNAL "No dev warnings") endif() module_add_library(genivi_poiservice_cam_navit genivi_poiservice_cam_navit.cxx ${DBUS_GENERATED_INCLUDE_DIR}/poi-service/genivi-poiservice-poicontentaccess_proxy.h ${DBUS_GENERATED_INCLUDE_DIR}/poi-service/genivi-poiservice-contentaccessmodule_adaptor.h) target_link_libraries(genivi_poiservice_cam_navit ${LIBRARIES}) add_dependencies(genivi_poiservice_cam_navit ${API_DIR}/poi-service)