代码拉取完成,页面将自动刷新
cmake_minimum_required(VERSION 3.13)
project(serialport)
set(CMAKE_CXX_STANDARD 11)
set(JSON_CPP_SRC jsoncpp/src/json_reader.cpp jsoncpp/src/json_tool.h jsoncpp/src/json_value.cpp jsoncpp/src/json_writer.cpp)
set(LIB_SOURCE com_cgutech_core_utils_SerialPortHandler.h com_cgutech_core_utils_SerialPortHandler_UartDataReceiver.h)
include_directories(/opt/jdk1.8.0_131/include /opt/jdk1.8.0_131/include/linux /root/下载/boost_1_70_0 jsoncpp/include /root/sourcecode/jsoncpp-1.9.0/build/include/json)
link_directories(boost /root/sourcecode/jsoncpp-1.9.0/build/src/lib_json)
add_library(zx_uart SHARED ${LIB_SOURCE} com_cgutech_core_utils_SerialPortHandler.cpp SerialPortForBoost.cpp SerialPortForBoost.h)
add_executable(serialportdemo main.cpp ${LIB_SOURCE} SerialPortForBoost.cpp SerialPortForBoost.h RoadLightController.cpp RoadLightController.h Light.cpp Light.h ${JSON_CPP_SRC})
add_executable(serial_test test_main.cpp ${LIB_SOURCE} SerialPortForBoost.cpp SerialPortForBoost.h)
target_link_libraries(serialportdemo pthread)
target_link_libraries(serial_test pthread)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。