2022-08-01 15:26:22 +00:00
|
|
|
# src/lasp/CMakeLists.txt
|
2022-07-20 12:58:48 +00:00
|
|
|
|
|
|
|
# Armadillo
|
|
|
|
add_definitions(-DARMA_DONT_USE_WRAPPER)
|
|
|
|
|
|
|
|
configure_file(lasp_config.h.in lasp_config.h)
|
|
|
|
include_directories(${CMAKE_CURRENT_BINARY_DIR})
|
2022-08-16 19:22:35 +00:00
|
|
|
include_directories(SYSTEM ../../third_party/carma/include)
|
2022-09-03 14:07:44 +00:00
|
|
|
include_directories(SYSTEM
|
|
|
|
../../third_party/carma/extern/armadillo-code/include)
|
|
|
|
include_directories(SYSTEM
|
|
|
|
../../third_party/carma/extern/pybind11/include)
|
|
|
|
|
2022-07-20 12:58:48 +00:00
|
|
|
include_directories(../../third_party/DebugTrace-cpp/include)
|
2022-07-29 07:32:26 +00:00
|
|
|
include_directories(../../third_party/lockfreeThreadsafe/include)
|
2022-07-20 12:58:48 +00:00
|
|
|
include_directories(../../third_party/gsl-lite/include)
|
|
|
|
include_directories(../../third_party/tomlplusplus/include)
|
2022-08-11 12:47:44 +00:00
|
|
|
include_directories(../../third_party/thread-pool)
|
2022-07-20 12:58:48 +00:00
|
|
|
|
|
|
|
add_subdirectory(device)
|
|
|
|
add_subdirectory(dsp)
|
|
|
|
|
|
|
|
pybind11_add_module(lasp_cpp MODULE lasp_cpp.cpp
|
|
|
|
pybind11/lasp_deviceinfo.cpp
|
2022-07-29 07:36:49 +00:00
|
|
|
pybind11/lasp_daqconfig.cpp
|
2022-07-20 12:58:48 +00:00
|
|
|
pybind11//lasp_dsp_pybind.cpp
|
|
|
|
pybind11/lasp_streammgr.cpp
|
|
|
|
pybind11/lasp_daq.cpp
|
|
|
|
pybind11/lasp_deviceinfo.cpp
|
2022-07-29 07:32:26 +00:00
|
|
|
pybind11/lasp_pyindatahandler.cpp
|
2022-07-20 12:58:48 +00:00
|
|
|
)
|
|
|
|
|
2022-09-03 14:07:44 +00:00
|
|
|
target_link_libraries(lasp_cpp PRIVATE lasp_device_lib lasp_dsp_lib
|
|
|
|
carma::carma
|
|
|
|
${OpenMP_CXX_LIBRARIES} ${LASP_FFT_LIBS})
|
2022-07-20 12:58:48 +00:00
|
|
|
|
|
|
|
install(TARGETS lasp_cpp DESTINATION .)
|