From 848668438d2a4aef76dabdcc5d9f9fe749554466 Mon Sep 17 00:00:00 2001 From: Xavier Guerrero-Pau Date: Mon, 9 Sep 2024 17:08:01 +0200 Subject: [PATCH 1/3] Added presets --- CMakePresets.json | 70 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 CMakePresets.json diff --git a/CMakePresets.json b/CMakePresets.json new file mode 100644 index 000000000..bf59eb30c --- /dev/null +++ b/CMakePresets.json @@ -0,0 +1,70 @@ +{ + "version": 8, + "configurePresets": [ + { + "name": "basic", + "displayName": "basic", + "description": "Basic common flags", + "binaryDir": "${sourceDir}/build-basic", + "cacheVariables": { + "CMAKE_C_COMPILER": "/usr/bin/gcc", + "CMAKE_CXX_COMPILER": "/usr/bin/g++", + "CMAKE_BUILD_TYPE": "Release", + "ENABLE_RAW_UDP": "ON", + "ENABLE_ZMQ": "ON", + "ENABLE_GLOG_AND_GFLAGS": "ON", + "ENABLE_LOG": "ON", + "ENABLE_UNIT_TESTING": "ON" + } + }, + { + "name": "config-debug", + "displayName": "gnss-standard-debug", + "description": "Standard use", + "generator": "Ninja", + "binaryDir": "${sourceDir}/build-debug", + "inherits": "basic", + "cacheVariables": { + "CMAKE_INSTALL_PREFIX": "${sourceDir}/out/install/${presetName}", + "CMAKE_BUILD_TYPE": "Debug", + "ENABLE_UHD": "ON", + "ENABLE_OSMOSDR": "ON", + "ENABLE_PLUTOSDR": "ON", + "ENABLE_AD936X_SDR": "ON" + } + }, + { + "name": "config-release", + "displayName": "gnss-standard-release", + "description": "Standard use", + "generator": "Ninja", + "binaryDir": "${sourceDir}/build-release", + "inherits": "basic", + "cacheVariables": { + "CMAKE_INSTALL_PREFIX": "${sourceDir}/out/install/${presetName}", + "CMAKE_BUILD_TYPE": "Release", + "ENABLE_UHD": "ON", + "ENABLE_OSMOSDR": "ON", + "ENABLE_PLUTOSDR": "ON", + "ENABLE_AD936X_SDR": "ON" + } + } + ], + "buildPresets": [ + { + "name": "build-basic", + "displayName": "Basic build", + "configurePreset": "basic" + }, + { + "name": "build-debug", + "displayName": "Debug build", + "configurePreset": "config-debug" + }, + { + "name": "build-release", + "displayName": "Release build", + "configurePreset": "config-release" + } + ] +} \ No newline at end of file From d33ab59ceaf6c868a0d1c0e48b0432314b0706ec Mon Sep 17 00:00:00 2001 From: Xavier Guerrero-Pau Date: Tue, 10 Sep 2024 12:02:40 +0200 Subject: [PATCH 2/3] Added license for CMakePresets.json --- CMakePresets.json.license | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 CMakePresets.json.license diff --git a/CMakePresets.json.license b/CMakePresets.json.license new file mode 100644 index 000000000..3410fd5dd --- /dev/null +++ b/CMakePresets.json.license @@ -0,0 +1,5 @@ +# GNSS-SDR is a Global Navigation Satellite System software-defined receiver. +# This file is part of GNSS-SDR. +# +# SPDX-FileCopyrightText: 2024 Xavier Guerrero-Pau xguerrero(at)cttc.es +# SPDX-License-Identifier: BSD-3-Clause \ No newline at end of file From 5975a5590da00ce38172798c2134c6644d570ab0 Mon Sep 17 00:00:00 2001 From: Xavier Guerrero Date: Wed, 25 Sep 2024 16:06:00 +0200 Subject: [PATCH 3/3] Basic Presets for an Ubuntu with ad936x --- CMakePresets.json | 56 ++++++++++++----------------------------------- 1 file changed, 14 insertions(+), 42 deletions(-) diff --git a/CMakePresets.json b/CMakePresets.json index bf59eb30c..496bf2e42 100644 --- a/CMakePresets.json +++ b/CMakePresets.json @@ -2,14 +2,11 @@ "version": 8, "configurePresets": [ { - "name": "basic", - "displayName": "basic", - "description": "Basic common flags", - "binaryDir": "${sourceDir}/build-basic", + "name": "debug", + "description": "Basic debug flags", "cacheVariables": { - "CMAKE_C_COMPILER": "/usr/bin/gcc", - "CMAKE_CXX_COMPILER": "/usr/bin/g++", - "CMAKE_BUILD_TYPE": "Release", + "CMAKE_INSTALL_PREFIX": "${sourceDir}/out/install/${presetName}", + "CMAKE_BUILD_TYPE": "Debug", "ENABLE_RAW_UDP": "ON", "ENABLE_ZMQ": "ON", "ENABLE_GLOG_AND_GFLAGS": "ON", @@ -18,31 +15,13 @@ } }, { - "name": "config-debug", - "displayName": "gnss-standard-debug", - "description": "Standard use", - "generator": "Ninja", - "binaryDir": "${sourceDir}/build-debug", - "inherits": "basic", + "name": "ubuntu-ad936x", + "description": "Common flags for a Ubuntu with an ad936x", + "binaryDir": "${sourceDir}/build-ubuntu-ad936x", + "inherits": "debug", "cacheVariables": { - "CMAKE_INSTALL_PREFIX": "${sourceDir}/out/install/${presetName}", - "CMAKE_BUILD_TYPE": "Debug", - "ENABLE_UHD": "ON", - "ENABLE_OSMOSDR": "ON", - "ENABLE_PLUTOSDR": "ON", - "ENABLE_AD936X_SDR": "ON" - } - }, - { - "name": "config-release", - "displayName": "gnss-standard-release", - "description": "Standard use", - "generator": "Ninja", - "binaryDir": "${sourceDir}/build-release", - "inherits": "basic", - "cacheVariables": { - "CMAKE_INSTALL_PREFIX": "${sourceDir}/out/install/${presetName}", - "CMAKE_BUILD_TYPE": "Release", + "CMAKE_C_COMPILER": "/usr/bin/gcc", + "CMAKE_CXX_COMPILER": "/usr/bin/g++", "ENABLE_UHD": "ON", "ENABLE_OSMOSDR": "ON", "ENABLE_PLUTOSDR": "ON", @@ -52,19 +31,12 @@ ], "buildPresets": [ { - "name": "build-basic", - "displayName": "Basic build", - "configurePreset": "basic" + "name": "debug", + "configurePreset": "debug" }, { - "name": "build-debug", - "displayName": "Debug build", - "configurePreset": "config-debug" - }, - { - "name": "build-release", - "displayName": "Release build", - "configurePreset": "config-release" + "name": "ubuntu-ad936x", + "configurePreset": "ubuntu-ad936x" } ] } \ No newline at end of file