Add build_oai option for imscope_record
This commit is contained in:
@@ -298,6 +298,7 @@ message(STATUS "Selected KPM Version: ${KPM_VERSION}")
|
|||||||
|
|
||||||
|
|
||||||
add_boolean_option(ENABLE_IMSCOPE OFF "Enable phy scope based on imgui" OFF)
|
add_boolean_option(ENABLE_IMSCOPE OFF "Enable phy scope based on imgui" OFF)
|
||||||
|
add_boolean_option(ENABLE_IMSCOPE_RECORD OFF "Enable recording IQ data for imscope" OFF)
|
||||||
|
|
||||||
##################################################
|
##################################################
|
||||||
# ASN.1 grammar C code generation & dependencies #
|
# ASN.1 grammar C code generation & dependencies #
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ BUILD_DOXYGEN=0
|
|||||||
DISABLE_HARDWARE_DEPENDENCY="False"
|
DISABLE_HARDWARE_DEPENDENCY="False"
|
||||||
CMAKE_BUILD_TYPE="RelWithDebInfo"
|
CMAKE_BUILD_TYPE="RelWithDebInfo"
|
||||||
CMAKE_CMD="$CMAKE"
|
CMAKE_CMD="$CMAKE"
|
||||||
OPTIONAL_LIBRARIES="telnetsrv enbscope uescope nrscope ldpc_cuda ldpc_t2 ldpc_xdma websrv oai_iqplayer imscope"
|
OPTIONAL_LIBRARIES="telnetsrv enbscope uescope nrscope ldpc_cuda ldpc_t2 ldpc_xdma websrv oai_iqplayer imscope imscope_record"
|
||||||
TARGET_LIST=""
|
TARGET_LIST=""
|
||||||
BUILD_TOOL_OPT="-j$(nproc)"
|
BUILD_TOOL_OPT="-j$(nproc)"
|
||||||
|
|
||||||
|
|||||||
@@ -64,6 +64,6 @@ if (ENABLE_TESTS)
|
|||||||
add_subdirectory(tests)
|
add_subdirectory(tests)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (ENABLE_IMSCOPE)
|
if (ENABLE_IMSCOPE OR ENABLE_IMSCOPE_RECORD)
|
||||||
add_subdirectory(imscope)
|
add_subdirectory(imscope)
|
||||||
endif()
|
endif()
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
|
if (ENABLE_IMSCOPE)
|
||||||
CPMAddPackage("gh:ocornut/imgui#v1.91.3-docking")
|
CPMAddPackage("gh:ocornut/imgui#v1.91.3-docking")
|
||||||
add_library(imgui
|
add_library(imgui
|
||||||
${imgui_SOURCE_DIR}/imgui_draw.cpp
|
${imgui_SOURCE_DIR}/imgui_draw.cpp
|
||||||
@@ -34,10 +34,14 @@ target_link_libraries(imscope PUBLIC imgui_glfw_backend glfw imgui_opengl_render
|
|||||||
set_target_properties(imscope PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
|
set_target_properties(imscope PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
|
||||||
configure_file(imgui.ini ${CMAKE_BINARY_DIR}/imscope-init.ini COPYONLY)
|
configure_file(imgui.ini ${CMAKE_BINARY_DIR}/imscope-init.ini COPYONLY)
|
||||||
|
|
||||||
add_library(imscope_record MODULE ../phy_scope_interface.c imscope_common.cpp imscope_record.cpp)
|
|
||||||
target_link_libraries(imscope_record PRIVATE UTIL atomic)
|
|
||||||
set_target_properties(imscope_record PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
|
|
||||||
|
|
||||||
add_executable(imscope_iq_file_viewer imscope.cpp imscope_iq_file_viewer.cpp ../phy_scope_interface.c imscope_common.cpp)
|
add_executable(imscope_iq_file_viewer imscope.cpp imscope_iq_file_viewer.cpp ../phy_scope_interface.c imscope_common.cpp)
|
||||||
target_link_libraries(imscope_iq_file_viewer PRIVATE imgui_glfw_backend glfw imgui_opengl_renderer OpenGL::OpenGL implot UTIL minimal_lib shlib_loader)
|
target_link_libraries(imscope_iq_file_viewer PRIVATE imgui_glfw_backend glfw imgui_opengl_renderer OpenGL::OpenGL implot UTIL minimal_lib shlib_loader)
|
||||||
set_target_properties(imscope_iq_file_viewer PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}")
|
set_target_properties(imscope_iq_file_viewer PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if (ENABLE_IMSCOPE_RECORD)
|
||||||
|
add_library(imscope_record MODULE ../phy_scope_interface.c imscope_common.cpp imscope_record.cpp)
|
||||||
|
target_link_libraries(imscope_record PRIVATE UTIL atomic)
|
||||||
|
set_target_properties(imscope_record PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
|
||||||
|
endif()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user