Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ find_package(PkgConfig REQUIRED)
pkg_check_modules(PC_FFTW3 REQUIRED fftw3f)
pkg_check_modules(PC_ALSA REQUIRED alsa)
pkg_check_modules(PC_LIBCONFIG REQUIRED libconfig)
pkg_search_module (PC_JSON-C REQUIRED json-c json)
find_library(MATRIX_CREATOR_HAL matrix_creator_hal)

include_directories("${PROJECT_SOURCE_DIR}/include")

Expand All @@ -22,6 +24,10 @@ include_directories(include/odas)

add_subdirectory(include)

find_path (JSON_C_INCLUDE_DIR json.h PATH_SUFFIXES json-c json)
find_library (JSON_C_LIBRARIES NAMES json-c libjson-c)
include_directories (${JSON_C_INCLUDE_DIR})

set(SRC

src/general/format.c
Expand Down Expand Up @@ -209,6 +215,15 @@ target_link_libraries(odaslive
odas
)

add_executable(matrix-odas
demo/matrix-demos/matrix-odas.cpp
)
target_link_libraries(matrix-odas
odas
${JSON_C_LIBRARIES}
${MATRIX_CREATOR_HAL}
)

add_executable(odasserver
demo/odasserver/main.c
)
Expand Down
Loading