lasp/cpp_src/device/CMakeLists.txt

46 lines
1.2 KiB
CMake
Raw Permalink Normal View History

# src/lasp/device/CMakeLists.txt
include_directories(uldaq)
include_directories(portaudio)
2022-07-20 12:58:48 +00:00
add_library(lasp_device_lib OBJECT
lasp_daq.cpp
lasp_daqconfig.cpp
lasp_daqdata.cpp
lasp_deviceinfo.cpp
lasp_rtaudiodaq.cpp
lasp_streammgr.cpp
lasp_indatahandler.cpp
lasp_uldaq.cpp
uldaq/lasp_uldaq_impl.cpp
uldaq/lasp_uldaq_bufhandler.cpp
uldaq/lasp_uldaq_common.cpp
portaudio/lasp_portaudiodaq.cpp
)
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")
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})
if(LASP_HAS_ULDAQ)
target_link_libraries(lasp_device_lib uldaq)
endif()
if(LASP_HAS_RTAUDIO)
target_link_libraries(lasp_device_lib rtaudio)
endif()
if(LASP_HAS_PORTAUDIO)
target_link_libraries(lasp_device_lib portaudio)
if(WIN32)
else()
target_link_libraries(lasp_device_lib asound)
endif()
endif()
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