summaryrefslogtreecommitdiff
path: root/enhanced-position-service/CMakeLists.txt
blob: 60a2f9e04b50145f437e4eec1de28fc96186f58b (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
48
49
50
51
52
53
54
55
56
57
###########################################################################
# @licence app begin@
# SPDX-License-Identifier: MPL-2.0
#
# Component Name: EnhancedPositionService
#
# Author: Marco Residori
#
# Copyright (C) 2014, XS Embedded GmbH
# 
# 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(enhanced-position-service)
cmake_minimum_required(VERSION 2.6.0)

option(WITH_DLT
    "Enable DLT logging" OFF)

message(STATUS)
message(STATUS "---------------------------------------------------------")

set(gnss-service_INCLUDE_DIRS "${PROJECT_SOURCE_DIR}/../gnss-service/api")
set(gnss-service_LIBRARY_DIRS "${PROJECT_BINARY_DIR}/../gnss-service/src")

if(WITH_REPLAYER)
    set(gnss-service_LIBRARIES "gnss-service-use-replayer")
elseif(WITH_GPSD)
	set(gnss-service_LIBRARIES "gnss-service-use-gpsd")
endif()

set(sensors-service_INCLUDE_DIRS "${PROJECT_SOURCE_DIR}/../sensors-service/api")
set(sensors-service_LIBRARY_DIRS "${PROJECT_BINARY_DIR}/../sensors-service/src")

if(WITH_REPLAYER)
   set(sensors-service_LIBRARIES "sensors-service-use-replayer")
endif()

include_directories(api src test ${gnss-service_INCLUDE_DIRS} ${sensors-service_INCLUDE_DIRS})

add_subdirectory(src)
message(STATUS "---------------------------------------------------------")

if(WITH_TESTS)
add_subdirectory(test)
message(STATUS "---------------------------------------------------------")

add_subdirectory(test/compliance-test)
message(STATUS "---------------------------------------------------------")
endif()

message(STATUS)