Made default preset for compiled in DAQ backends in CMakeLists
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
64a268e277
commit
d9a3cfd627
@ -6,12 +6,26 @@ set(CMAKE_CXX_STANDARD 17)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED)
|
||||
|
||||
option(LASP_DOUBLE_PRECISION "Compile as double precision floating point" ON)
|
||||
option(LASP_HAS_RTAUDIO "Compile with RtAudio Daq backend" OFF)
|
||||
option(LASP_HAS_PORTAUDIO "Compile with PortAudio Daq backend" ON)
|
||||
|
||||
# Setting defaults for PortAudio and RtAudio backend, depending on Linux /
|
||||
# Windows.
|
||||
if(WIN32)
|
||||
set(DEFAULT_RTAUDIO OFF)
|
||||
set(DEFAULT_PORTAUDIO ON)
|
||||
set(DEFAULT_ULDAQ OFF)
|
||||
else()
|
||||
set(DEFAULT_RTAUDIO ON)
|
||||
set(DEFAULT_PORTAUDIO OFF)
|
||||
set(DEFAULT_ULDAQ ON)
|
||||
endif()
|
||||
|
||||
|
||||
option(LASP_HAS_RTAUDIO "Compile with RtAudio Daq backend" ${DEFAULT_RTAUDIO})
|
||||
option(LASP_HAS_PORTAUDIO "Compile with PortAudio Daq backend" ${DEFAULT_PORTAUDIO})
|
||||
if(LASP_HAS_PORTAUDIO AND LASP_HAS_RTAUDIO)
|
||||
message(FATAL_ERROR "Either PortAudio or RtAudio can be selected as audio backend")
|
||||
endif()
|
||||
option(LASP_HAS_ULDAQ "Compile with UlDaq backend" ON)
|
||||
option(LASP_HAS_ULDAQ "Compile with UlDaq backend" ${DEFAULT_ULDAQ})
|
||||
option(LASP_BUILD_TUNED "Tune build for current machine (Experimental / untested)" OFF)
|
||||
option(LASP_WITH_OPENMP "Use OpenMP parallelization (Experimental: crashes SHOULD BE EXPECTED)" OFF)
|
||||
set(LASP_MAX_NFFT "33554432" CACHE STRING "Max FFT size")
|
||||
|
Loading…
Reference in New Issue
Block a user