diff options
author | Jonathan Maw <jonathan.maw@codethink.co.uk> | 2015-05-12 10:27:52 +0000 |
---|---|---|
committer | Jonathan Maw <jonathan.maw@codethink.co.uk> | 2015-05-12 12:04:22 +0000 |
commit | c0bfc7d46c55997d20b31db58207516c9184c75b (patch) | |
tree | 5898e7f5be738f15f87717e44841b512d5362f97 | |
parent | 35b76e82b457057dff3df4dc468445c9af3fc3eb (diff) | |
download | positioning-baserock/jonathanmaw/genivi-demo-from-master.tar.gz |
Add top-level CMakeListsbaserock/jonathanmaw/genivi-demo-from-master
-rw-r--r-- | CMakeLists.txt | 49 | ||||
-rw-r--r-- | enhanced-position-service/CMakeLists.txt | 27 | ||||
-rw-r--r-- | enhanced-position-service/dbus/test/compliance-test/CMakeLists.txt | 2 | ||||
-rw-r--r-- | gnss-service/src/CMakeLists.txt | 12 | ||||
-rwxr-xr-x | gnss-service/test/CMakeLists.txt | 2 | ||||
-rw-r--r-- | gnss-service/test/compliance-test/CMakeLists.txt | 2 | ||||
-rw-r--r-- | log-replayer/src/CMakeLists.txt | 2 | ||||
-rw-r--r-- | log-replayer/test/CMakeLists.txt | 2 | ||||
-rw-r--r-- | sensors-service/src/CMakeLists.txt | 22 | ||||
-rw-r--r-- | sensors-service/test/CMakeLists.txt | 2 |
10 files changed, 99 insertions, 23 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..1167eec --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,49 @@ +########################################################################### +# @licence app begin@ +# SPDX-License-Identifier: MPL-2.0 +# +# Component Name: Positioning Top-level Makefile +# +# Author: Jonathan Maw +# +# Copyright (C) 2015, Codethink Ltd +# +# 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/. +# +# Update (2015/05/11) : Jonathan Maw <jonathan.maw@codethink.co.uk> +# - First write +# @licence end@ +########################################################################### +cmake_minimum_required(VERSION 2.6.0) + +option(WITH_ENHANCED_POSITION_SERVICE + "Build the Enhanced Positioning Service" ON) +option(WITH_GNSS_SERVICE + "Build the GNSS Service" ON) +option(WITH_LOG_REPLAYER + "Build the Log Replayer" ON) +option(WITH_SENSORS_SERVICE + "Build the Sensors Service" ON) +option(WITH_FRANCA_INTERFACE + "Build using the Franca interfaces" OFF) +option(WITH_DBUS_INTERFACE + "Build using the D-Bus interfaces" ON) + +if(WITH_ENHANCED_POSITION_SERVICE) + add_subdirectory(enhanced-position-service) +endif(WITH_ENHANCED_POSITION_SERVICE) + +if(WITH_GNSS_SERVICE) + add_subdirectory(gnss-service) +endif(WITH_GNSS_SERVICE) + +if(WITH_LOG_REPLAYER) + add_subdirectory(log-replayer) +endif(WITH_LOG_REPLAYER) + +if(WITH_SENSORS_SERVICE) + add_subdirectory(sensors-service) +endif(WITH_SENSORS_SERVICE) diff --git a/enhanced-position-service/CMakeLists.txt b/enhanced-position-service/CMakeLists.txt new file mode 100644 index 0000000..1cf41d7 --- /dev/null +++ b/enhanced-position-service/CMakeLists.txt @@ -0,0 +1,27 @@ +########################################################################### +# @licence app begin@ +# SPDX-License-Identifier: MPL-2.0 +# +# Component Name: Positioning Top-level Makefile +# +# Author: Jonathan Maw +# +# Copyright (C) 2015, Codethink Ltd +# +# 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/. +# +# Update (2015/05/11) : Jonathan Maw <jonathan.maw@codethink.co.uk> +# - First write +# @licence end@ +########################################################################### +cmake_minimum_required(VERSION 2.6.0) + +if(WITH_DBUS_INTERFACE) + add_subdirectory(dbus) +endif(WITH_DBUS_INTERFACE) +if(WITH_FRANCA_INTERFACE) + add_subdirectory(franca) +endif(WITH_FRANCA_INTERFACE) diff --git a/enhanced-position-service/dbus/test/compliance-test/CMakeLists.txt b/enhanced-position-service/dbus/test/compliance-test/CMakeLists.txt index 918e579..9c90c72 100644 --- a/enhanced-position-service/dbus/test/compliance-test/CMakeLists.txt +++ b/enhanced-position-service/dbus/test/compliance-test/CMakeLists.txt @@ -29,7 +29,7 @@ include_directories( ${DBUS_INCLUDEDIR} ${DBUS_INCLUDE_DIRS} ) link_directories ( ${DBUS_LIBDIR} ${DBUS_LIBRARY_DIRS} ) -set(SRCS ${CMAKE_SOURCE_DIR}/test/compliance-test/enhanced-position-service-compliance-test.c) +set(SRCS ${CMAKE_CURRENT_SOURCE_DIR}/enhanced-position-service-compliance-test.c) add_executable(enhanced-position-service-compliance-test ${SRCS}) diff --git a/gnss-service/src/CMakeLists.txt b/gnss-service/src/CMakeLists.txt index 56ed98b..b9cf431 100644 --- a/gnss-service/src/CMakeLists.txt +++ b/gnss-service/src/CMakeLists.txt @@ -47,17 +47,17 @@ endif() if(WITH_GPSD) pkg_check_modules(GPSD libgps>=2.94) #generate library using gpsd as input - set(LIB_SRC_USE_GPSD ${CMAKE_SOURCE_DIR}/src/gnss-use-gpsd.c - ${CMAKE_SOURCE_DIR}/src/gnss-impl.c - ${CMAKE_SOURCE_DIR}/src/gnss-meta-data.c) + set(LIB_SRC_USE_GPSD ${CMAKE_CURRENT_SOURCE_DIR}/gnss-use-gpsd.c + ${CMAKE_CURRENT_SOURCE_DIR}/gnss-impl.c + ${CMAKE_CURRENT_SOURCE_DIR}/gnss-meta-data.c) add_library(gnss-service-use-gpsd SHARED ${LIB_SRC_USE_GPSD}) target_link_libraries(gnss-service-use-gpsd gps ${LIBRARIES}) install(TARGETS gnss-service-use-gpsd DESTINATION lib) elseif(WITH_REPLAYER) #generate library using replayer as input - set(LIB_SRC_USE_REPLAYER ${CMAKE_SOURCE_DIR}/src/gnss-use-replayer.c - ${CMAKE_SOURCE_DIR}/src/gnss-impl.c - ${CMAKE_SOURCE_DIR}/src/gnss-meta-data.c) + set(LIB_SRC_USE_REPLAYER ${CMAKE_CURRENT_SOURCE_DIR}/gnss-use-replayer.c + ${CMAKE_CURRENT_SOURCE_DIR}/gnss-impl.c + ${CMAKE_CURRENT_SOURCE_DIR}/gnss-meta-data.c) add_library(gnss-service-use-replayer SHARED ${LIB_SRC_USE_REPLAYER}) target_link_libraries(gnss-service-use-replayer ${LIBRARIES}) install(TARGETS gnss-service-use-replayer DESTINATION lib) diff --git a/gnss-service/test/CMakeLists.txt b/gnss-service/test/CMakeLists.txt index d1162fd..b9e05c2 100755 --- a/gnss-service/test/CMakeLists.txt +++ b/gnss-service/test/CMakeLists.txt @@ -30,7 +30,7 @@ include_directories("${PROJECT_SOURCE_DIR}/src") find_package(PkgConfig) -set(SRCS ${CMAKE_SOURCE_DIR}/test/gnss-service-client.c) +set(SRCS ${CMAKE_CURRENT_SOURCE_DIR}/gnss-service-client.c) add_executable(gnss-service-client ${SRCS}) diff --git a/gnss-service/test/compliance-test/CMakeLists.txt b/gnss-service/test/compliance-test/CMakeLists.txt index 416eb75..a1eb104 100644 --- a/gnss-service/test/compliance-test/CMakeLists.txt +++ b/gnss-service/test/compliance-test/CMakeLists.txt @@ -30,7 +30,7 @@ include_directories("${PROJECT_SOURCE_DIR}/src") find_package(PkgConfig) -set(SRCS ${CMAKE_SOURCE_DIR}/test/compliance-test/gnss-service-compliance-test.c) +set(SRCS ${CMAKE_CURRENT_SOURCE_DIR}/gnss-service-compliance-test.c) add_executable(gnss-service-compliance-test ${SRCS}) diff --git a/log-replayer/src/CMakeLists.txt b/log-replayer/src/CMakeLists.txt index ac26aea..039ed94 100644 --- a/log-replayer/src/CMakeLists.txt +++ b/log-replayer/src/CMakeLists.txt @@ -22,7 +22,7 @@ message(STATUS "WITH_TESTS = ${WITH_TESTS}") find_package(PkgConfig) -set(LIB_SRCS ${CMAKE_SOURCE_DIR}/src/log-replayer.c) +set(LIB_SRCS ${CMAKE_CURRENT_SOURCE_DIR}/log-replayer.c) set(LIBRARIES pthread) diff --git a/log-replayer/test/CMakeLists.txt b/log-replayer/test/CMakeLists.txt index fd5bd8d..3af87ea 100644 --- a/log-replayer/test/CMakeLists.txt +++ b/log-replayer/test/CMakeLists.txt @@ -27,7 +27,7 @@ include_directories("${PROJECT_SOURCE_DIR}/src") find_package(PkgConfig) -set(SRCS ${CMAKE_SOURCE_DIR}/test/test-log-replayer.c) +set(SRCS ${CMAKE_CURRENT_SOURCE_DIR}/test-log-replayer.c) add_executable(test-log-replayer ${SRCS}) set(LIBRARIES pthread) diff --git a/sensors-service/src/CMakeLists.txt b/sensors-service/src/CMakeLists.txt index 906e43c..f0f220f 100644 --- a/sensors-service/src/CMakeLists.txt +++ b/sensors-service/src/CMakeLists.txt @@ -46,23 +46,23 @@ endif() if(WITH_IPHONE) #generate library using iphone as input - set(LIB_SRC_USE_IPHONE ${CMAKE_SOURCE_DIR}/src/sns-use-iphone.c - ${CMAKE_SOURCE_DIR}/src/wheeltick.c - ${CMAKE_SOURCE_DIR}/src/gyroscope.c - ${CMAKE_SOURCE_DIR}/src/vehicle-speed.c - ${CMAKE_SOURCE_DIR}/src/sns-meta-data.c) + set(LIB_SRC_USE_IPHONE ${CMAKE_CURRENT_SOURCE_DIR}/sns-use-iphone.c + ${CMAKE_CURRENT_SOURCE_DIR}/wheeltick.c + ${CMAKE_CURRENT_SOURCE_DIR}/gyroscope.c + ${CMAKE_CURRENT_SOURCE_DIR}/vehicle-speed.c + ${CMAKE_CURRENT_SOURCE_DIR}/sns-meta-data.c) add_library(sensors-service-use-iphone SHARED ${LIB_SRC_USE_IPHONE}) target_link_libraries(sensors-service-use-iphone ${LIBRARIES}) install(TARGETS sensors-service-use-iphone DESTINATION lib) elseif(WITH_REPLAYER) #generate library using replayer as input - set(LIB_SRC_USE_REPLAYER ${CMAKE_SOURCE_DIR}/src/sns-use-replayer.c - ${CMAKE_SOURCE_DIR}/src/wheeltick.c - ${CMAKE_SOURCE_DIR}/src/gyroscope.c - ${CMAKE_SOURCE_DIR}/src/acceleration.c - ${CMAKE_SOURCE_DIR}/src/vehicle-speed.c - ${CMAKE_SOURCE_DIR}/src/sns-meta-data.c) + set(LIB_SRC_USE_REPLAYER ${CMAKE_CURRENT_SOURCE_DIR}/sns-use-replayer.c + ${CMAKE_CURRENT_SOURCE_DIR}/wheeltick.c + ${CMAKE_CURRENT_SOURCE_DIR}/gyroscope.c + ${CMAKE_CURRENT_SOURCE_DIR}/acceleration.c + ${CMAKE_CURRENT_SOURCE_DIR}/vehicle-speed.c + ${CMAKE_CURRENT_SOURCE_DIR}/sns-meta-data.c) add_library(sensors-service-use-replayer SHARED ${LIB_SRC_USE_REPLAYER}) target_link_libraries(sensors-service-use-replayer ${LIBRARIES}) diff --git a/sensors-service/test/CMakeLists.txt b/sensors-service/test/CMakeLists.txt index f7c7459..c0674b8 100644 --- a/sensors-service/test/CMakeLists.txt +++ b/sensors-service/test/CMakeLists.txt @@ -51,7 +51,7 @@ if(WITH_DEBUG) add_definitions("-DDEBUG_ENABLED=1") endif() -set(SRCS ${CMAKE_SOURCE_DIR}/test/sensors-service-client.c) +set(SRCS ${CMAKE_CURRENT_SOURCE_DIR}/sensors-service-client.c) add_executable(sensors-service-client ${SRCS}) target_link_libraries(sensors-service-client ${LIBRARIES}) |