2022-08-01 15:26:22 +00:00
|
|
|
# src/lasp/device/CMakeLists.txt
|
2023-06-07 19:49:07 +00:00
|
|
|
include_directories(uldaq)
|
2023-06-14 19:23:53 +00:00
|
|
|
include_directories(portaudio)
|
2022-07-20 12:58:48 +00:00
|
|
|
|
2024-09-26 09:31:32 +00:00
|
|
|
add_library(lasp_device_lib OBJECT
|
2022-06-29 10:25:32 +00:00
|
|
|
lasp_daq.cpp
|
|
|
|
lasp_daqconfig.cpp
|
|
|
|
lasp_daqdata.cpp
|
|
|
|
lasp_deviceinfo.cpp
|
|
|
|
lasp_rtaudiodaq.cpp
|
|
|
|
lasp_streammgr.cpp
|
2023-06-06 14:05:24 +00:00
|
|
|
lasp_indatahandler.cpp
|
2023-06-14 19:23:53 +00:00
|
|
|
portaudio/lasp_portaudiodaq.cpp
|
2024-09-26 09:31:32 +00:00
|
|
|
)
|
2020-10-14 07:42:19 +00:00
|
|
|
|
2022-07-20 12:58:48 +00:00
|
|
|
# Callback requires certain arguments that are not used by code. This disables
|
|
|
|
# a compiler warning about it.
|
|
|
|
set_source_files_properties(lasp_rtaudiodaq.cpp PROPERTIES COMPILE_OPTIONS
|
|
|
|
"-Wno-unused")
|
|
|
|
|
2022-06-29 10:25:32 +00:00
|
|
|
target_include_directories(lasp_device_lib PUBLIC ../dsp)
|
|
|
|
target_include_directories(lasp_device_lib PUBLIC ../c)
|
2022-07-20 12:58:48 +00:00
|
|
|
target_include_directories(lasp_device_lib INTERFACE
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR})
|
|
|
|
|
2022-06-29 10:25:32 +00:00
|
|
|
if(LASP_HAS_ULDAQ)
|
2024-09-26 09:31:32 +00:00
|
|
|
add_subdirectory(uldaq)
|
|
|
|
target_include_directories(lasp_device_lib INTERFACE uldaq)
|
|
|
|
target_link_libraries(lasp_device_lib uldaq_backend uldaq)
|
2022-06-29 10:25:32 +00:00
|
|
|
endif()
|
|
|
|
if(LASP_HAS_RTAUDIO)
|
|
|
|
target_link_libraries(lasp_device_lib rtaudio)
|
|
|
|
endif()
|
2023-06-14 19:23:53 +00:00
|
|
|
if(LASP_HAS_PORTAUDIO)
|
2024-01-19 11:32:03 +00:00
|
|
|
target_link_libraries(lasp_device_lib PortAudio)
|
2023-06-14 19:23:53 +00:00
|
|
|
if(WIN32)
|
|
|
|
else()
|
|
|
|
target_link_libraries(lasp_device_lib asound)
|
|
|
|
endif()
|
|
|
|
endif()
|
2020-09-22 17:32:00 +00:00
|
|
|
|
2022-07-20 12:58:48 +00:00
|
|
|
target_link_libraries(lasp_device_lib lasp_dsp_lib)
|
2019-12-08 13:29:12 +00:00
|
|
|
|