Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding daqmx client for streaming as a separate target #1128

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from
Draft
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
36 changes: 36 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -906,6 +906,42 @@ if(USE_NILRT_LEGACY_TOOLCHAIN)
target_compile_definitions(SystemTestsRunner PRIVATE FS_EXPERIMENTAL)
endif()

add_executable(NiDaqmxClient
"source/tests/daqmx-client/fpga_daqmx_client.cc"
"${service_output_dir}/nidaqmx/nidaqmx_client.cpp"
"${proto_srcs_dir}/nidaqmx.pb.cc"
"${proto_srcs_dir}/nidaqmx.grpc.pb.cc"
"source/server/data_moniker_service.cpp"
"source/server/feature_toggles.cpp"
${nidevice_proto_srcs}
${session_proto_srcs}
${session_grpc_srcs}
${data_moniker_proto_srcs}
${data_moniker_grpc_srcs}
)

target_include_directories(NiDaqmxClient
PRIVATE "${service_output_dir}"
PRIVATE "${service_output_dir}/nidaqmx"
PRIVATE "source/tests/daqmx-client"
PRIVATE "third_party/grpc"
"./third_party/grpc-sideband/src"
)

target_link_libraries(NiDaqmxClient
${server_lib_deps}
Threads::Threads
)

# Ignore the use of deprecated functions in test code
target_compile_definitions(NiDaqmxClient
PRIVATE _CRT_SECURE_NO_WARNINGS _WINSOCK_DEPRECATED_NO_WARNINGS)

if(USE_NILRT_LEGACY_TOOLCHAIN)
target_link_libraries(NiDaqmxClient stdc++fs)
target_compile_definitions(NiDaqmxClient PRIVATE FS_EXPERIMENTAL)
endif()


# Hook up different google test runners to CTest
# add_test( NAME UnitTests COMMAND UnitTestsRunner )
Expand Down
Loading