16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-22 11:39:19 +02:00

zmq panel interface

This commit is contained in:
milek7
2020-03-29 21:54:57 +02:00
parent e8537a16bb
commit cefd741d04
8 changed files with 431 additions and 1 deletions

View File

@@ -38,6 +38,7 @@ endif()
option(USE_IMGUI_GL3 "Use OpenGL3+ imgui implementation" ON)
option(WITH_UART "Compile with libserialport" ON)
option(WITH_ZMQ "Compile with cppzmq" ON)
option(USE_VSDEV_CAMERA "Use VS_Dev camera preview implementation" OFF)
set(SOURCES
@@ -189,6 +190,11 @@ if (WITH_UART)
set(SOURCES ${SOURCES} "uart.cpp")
endif()
if (WITH_ZMQ)
add_definitions(-DWITH_ZMQ)
set(SOURCES ${SOURCES} "zmq_input.cpp")
endif()
if (USE_VSDEV_CAMERA)
add_definitions(-DUSE_VSDEV_CAMERA)
set(SOURCES ${SOURCES} "extras/VS_Dev.cpp" "widgets/cameraview_vsdev.cpp")
@@ -305,6 +311,10 @@ if (WIN32)
target_link_libraries(${PROJECT_NAME} ws2_32)
endif()
if (WITH_ZMQ)
target_link_libraries(${PROJECT_NAME} zmq)
endif()
#target_compile_options(${PROJECT_NAME} PRIVATE -flto)
#target_link_libraries(${PROJECT_NAME} -flto)