Modified directory structure to have al uldaq-files in the subfolder uldaq
This commit is contained in:
parent
509f165ecb
commit
a38eca47f3
@ -2,7 +2,7 @@
|
||||
include_directories(uldaq)
|
||||
include_directories(portaudio)
|
||||
|
||||
add_library(lasp_device_lib OBJECT
|
||||
add_library(lasp_device_lib OBJECT
|
||||
lasp_daq.cpp
|
||||
lasp_daqconfig.cpp
|
||||
lasp_daqdata.cpp
|
||||
@ -10,12 +10,8 @@ add_library(lasp_device_lib OBJECT
|
||||
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
|
||||
)
|
||||
)
|
||||
|
||||
# Callback requires certain arguments that are not used by code. This disables
|
||||
# a compiler warning about it.
|
||||
@ -28,7 +24,9 @@ target_include_directories(lasp_device_lib INTERFACE
|
||||
${CMAKE_CURRENT_SOURCE_DIR})
|
||||
|
||||
if(LASP_HAS_ULDAQ)
|
||||
target_link_libraries(lasp_device_lib uldaq)
|
||||
add_subdirectory(uldaq)
|
||||
target_include_directories(lasp_device_lib INTERFACE uldaq)
|
||||
target_link_libraries(lasp_device_lib uldaq_backend uldaq)
|
||||
endif()
|
||||
if(LASP_HAS_RTAUDIO)
|
||||
target_link_libraries(lasp_device_lib rtaudio)
|
||||
|
6
cpp_src/device/uldaq/CMakeLists.txt
Normal file
6
cpp_src/device/uldaq/CMakeLists.txt
Normal file
@ -0,0 +1,6 @@
|
||||
|
||||
add_library(uldaq_backend lasp_uldaq.cpp lasp_uldaq_bufhandler.cpp lasp_uldaq_common.cpp lasp_uldaq_impl.cpp)
|
||||
target_include_directories(uldaq_backend PUBLIC ../)
|
||||
target_include_directories(uldaq_backend PUBLIC ../../)
|
||||
target_include_directories(uldaq_backend PUBLIC ../../dsp)
|
||||
target_include_directories(uldaq_backend INTERFACE ${CMAKE_CURRENT_SOURCE_DIR})
|
@ -3,8 +3,8 @@
|
||||
#include "lasp_config.h"
|
||||
|
||||
#if LASP_HAS_ULDAQ == 1
|
||||
#include "lasp_uldaq_common.h"
|
||||
#include "lasp_daq.h"
|
||||
#include "lasp_uldaq_common.h"
|
||||
|
||||
string getErrMsg(UlError err) {
|
||||
string errstr;
|
||||
@ -21,11 +21,9 @@ void showErr(string errstr) {
|
||||
std::cerr << "***********************************************\n\n";
|
||||
}
|
||||
void showErr(UlError err) {
|
||||
if (err != ERR_NO_ERROR)
|
||||
showErr(getErrMsg(err));
|
||||
if (err != ERR_NO_ERROR) showErr(getErrMsg(err));
|
||||
}
|
||||
|
||||
|
||||
void throwOnPossibleUlException(UlError err) {
|
||||
if (err == ERR_NO_ERROR) {
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user