########################################################################### # @licence app begin@ # SPDX-License-Identifier: MPL-2.0 # # Component Name: poi-server # # Author: Philippe Colliot # # Copyright (C) 2014, PCA Peugeot Citroën # # License: # This Source Code Form is subject to the terms of the # Mozilla Public License, 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/. # # @licence end@ ########################################################################### project(poi-server) message(STATUS ${PROJECT_NAME}) add_definitions("-std=gnu++11") find_package(PkgConfig REQUIRED) pkg_check_modules(DBUS_CPP dbus-c++-1) pkg_check_modules(GLIB REQUIRED glib-2.0) pkg_check_modules(SQLITE3 REQUIRED sqlite3) pkg_check_modules(GOBJECT gobject-2.0) pkg_check_modules(DBUS dbus-1) pkg_check_modules(DBUS_CPP_GLIB dbus-c++-glib-1) #common files shared with poi server file(GLOB PRJ_COMMON_SRCS ${COMMON_DIR}/poi-common-database.cpp) include_directories( ${CMAKE_CURRENT_SOURCE_DIR} ${COMMON_DIR} ${DBUS_GENERATED_INCLUDE_DIR}/navigation-core ${DBUS_GENERATED_INCLUDE_DIR}/map-viewer ${DBUS_GENERATED_INCLUDE_DIR}/poi-service ${DBUS_CPP_INCLUDE_DIRS} ${GLIB_INCLUDE_DIRS} ${SQLITE3_INCLUDE_DIRS} ${GOBJECT_INCLUDE_DIRS} ${DBUS_INCLUDE_DIRS} ${DBUS_CPP_GLIB_INCLUDE_DIRS} ) link_directories( ${DBUS_CPP_LIBRARY_DIRS} ${GLIB_LIBRARY_DIRS} ${SQLITE3_LIBRARY_DIRS} ${GOBJECT_LIBRARY_DIRS} ${DBUS_LIBRARY_DIRS} ${DBUS_CPP_GLIB_DIRS} ) add_executable(poi-server main.cpp ${PRJ_COMMON_SRCS} ) set(LIBRARIES ${DBUS_CPP_LIBRARIES} ${GLIB_LIBRARIES} ${SQLITE3_LIBRARIES} ${GOBJECT_LIBRARIES} ${DBUS_LIBRARIES} ${DBUS_CPP_GLIB_LIBRARIES} ) target_link_libraries(poi-server ${LIBRARIES})