Skip to content

Commit

Permalink
Merge pull request #1816 from srcejon/cmakepresets_msvc
Browse files Browse the repository at this point in the history
Add windows-default CMake preset for building with Visual Studio
  • Loading branch information
f4exb authored Sep 11, 2023
2 parents fd233b2 + b7b591d commit 9476cdd
Showing 1 changed file with 94 additions and 52 deletions.
146 changes: 94 additions & 52 deletions CMakePresets.json
Original file line number Diff line number Diff line change
@@ -1,56 +1,98 @@
{
"version": 3,
"configurePresets": [
{
"name": "default",
"binaryDir": "build-default",
"cacheVariables": {
"DEBUG_OUTPUT": "ON",
"AIRSPYHF_DIR": "/opt/install/libairspyhf",
"AIRSPY_DIR": "/opt/install/libairspy",
"APT_DIR": "/opt/install/aptdec",
"BLADERF_DIR": "/opt/install/libbladeRF",
"CM256CC_DIR": "/opt/install/cm256cc",
"CODEC2_DIR": "/opt/install/codec2",
"DAB_DIR": "/opt/install/libdab",
"DSDCC_DIR": "/opt/install/dsdcc",
"HACKRF_DIR": "/opt/install/libhackrf",
"HAMLIB_DIR": "/opt/build/hamlib-prefix",
"IIO_DIR": "/opt/install/libiio",
"LIBSIGMF_DIR": "/opt/install/libsigmf",
"LIMESUITE_DIR": "/opt/install/LimeSuite",
"MBE_DIR": "/opt/install/mbelib",
"MIRISDR_DIR": "/opt/install/libmirisdr",
"PERSEUS_DIR": "/opt/install/libperseus",
"RTLSDR_DIR": "/opt/install/librtlsdr",
"SERIALDV_DIR": "/opt/install/serialdv",
"SGP4_DIR": "/opt/install/sgp4",
"SOAPYSDR_DIR": "/opt/install/SoapySDR",
"UHD_DIR": "/opt/install/uhd",
"XTRX_DIR": "/opt/install/xtrx-images",
"CMAKE_INSTALL_PREFIX": "/opt/install/sdrangel"
},
"warnings": {
"dev": false
}
},
{
"name": "default-qt6",
"inherits": "default",
"binaryDir": "build-qt6",
"cacheVariables": {
"ENABLE_QT6": "ON"
}
"version": 3,
"configurePresets": [
{
"name": "default",
"binaryDir": "build-default",
"cacheVariables": {
"DEBUG_OUTPUT": "ON",
"AIRSPYHF_DIR": "/opt/install/libairspyhf",
"AIRSPY_DIR": "/opt/install/libairspy",
"APT_DIR": "/opt/install/aptdec",
"BLADERF_DIR": "/opt/install/libbladeRF",
"CM256CC_DIR": "/opt/install/cm256cc",
"CODEC2_DIR": "/opt/install/codec2",
"DAB_DIR": "/opt/install/libdab",
"DSDCC_DIR": "/opt/install/dsdcc",
"HACKRF_DIR": "/opt/install/libhackrf",
"HAMLIB_DIR": "/opt/build/hamlib-prefix",
"IIO_DIR": "/opt/install/libiio",
"LIBSIGMF_DIR": "/opt/install/libsigmf",
"LIMESUITE_DIR": "/opt/install/LimeSuite",
"MBE_DIR": "/opt/install/mbelib",
"MIRISDR_DIR": "/opt/install/libmirisdr",
"PERSEUS_DIR": "/opt/install/libperseus",
"RTLSDR_DIR": "/opt/install/librtlsdr",
"SERIALDV_DIR": "/opt/install/serialdv",
"SGP4_DIR": "/opt/install/sgp4",
"SOAPYSDR_DIR": "/opt/install/SoapySDR",
"UHD_DIR": "/opt/install/uhd",
"XTRX_DIR": "/opt/install/xtrx-images",
"CMAKE_INSTALL_PREFIX": "/opt/install/sdrangel"
},
"warnings": {
"dev": false
},
"vendor": {
"microsoft.com/VisualStudioSettings/CMake/1.0": {
"hostOS": [ "Linux" ]
}
],
"buildPresets": [
{
"name": "default",
"configurePreset": "default"
},
{
"name": "default-qt6",
"configurePreset": "default-qt6"
}
},
{
"name": "default-windows",
"binaryDir": "${sourceDir}/build",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "RelWithDebInfo",
"DEBUG_OUTPUT": "ON",
"RX_SAMPLE_24BIT": "ON",
"ARCH_OPT": "SSE4_2",
"HIDE_CONSOLE": "OFF",
"ENABLE_AIRSPY": "ON",
"ENABLE_AIRSPYHF": "ON",
"ENABLE_BLADERF": "ON",
"ENABLE_HACKRF": "ON",
"ENABLE_IIO": "ON",
"ENABLE_MIRISDR": "OFF",
"ENABLE_PERSEUS": "ON",
"ENABLE_RTLSDR": "ON",
"ENABLE_SDRPLAY": "ON",
"ENABLE_SOAPYSDR": "ON",
"ENABLE_XTRX": "ON",
"ENABLE_USRP": "ON",
"BUILD_SERVER": "OFF",
"CMAKE_PREFIX_PATH": "C:/Qt/5.15.2/msvc2019_64;C:/Applications/boost_1_81_0"
},
"warnings": {
"dev": false
},
"vendor": {
"microsoft.com/VisualStudioSettings/CMake/1.0": {
"hostOS": [ "Windows" ]
}
]
}
},
{
"name": "default-qt6",
"inherits": "default",
"binaryDir": "build-qt6",
"cacheVariables": {
"ENABLE_QT6": "ON"
}
}
],
"buildPresets": [
{
"name": "default",
"configurePreset": "default"
},
{
"name": "default-windows",
"configurePreset": "default-windows"
},
{
"name": "default-qt6",
"configurePreset": "default-qt6"
}
]
}

0 comments on commit 9476cdd

Please sign in to comment.