1 Star 0 Fork 0

LY/File_Monitor

Create your Gitee Account
Explore and code with more than 13.5 million developers,Free private repositories !:)
Sign up
文件
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
CMakeLists.txt 1.02 KB
Copy Edit Raw Blame History
LY authored 16 days ago . 抽离配置文件
cmake_minimum_required(VERSION 3.10.2)
project(Monitor C CXX)
set(CMAKE_C_STANDARD 11)
set(CMAKE_CXX_STANDARD 17)
############################## 构建阶段 ###################################
find_package(nlohmann_json CONFIG REQUIRED)
find_package(eclipse-paho-mqtt-c CONFIG REQUIRED)
## 头文件路径
#include_directories(/usr/local/include)
## 库文件路径
#link_directories(/usr/local/lib)
add_executable(Monitor main.cpp
paho_mqtt.cpp
paho_mqtt.h
FileMonitor.cpp
FileMonitor.h
)
target_link_libraries(Monitor
eclipse-paho-mqtt-c::paho-mqtt3a-static
nlohmann_json::nlohmann_json
pthread
)
##########################################################################
############################## 安装阶段 ###################################
# 安装可执行文件到 /usr/local/bin
install(TARGETS Monitor DESTINATION bin)
install(FILES config.json DESTINATION /home/nvidia/Monitor)
##########################################################################
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/lystudio_top/file_monitor.git
git@gitee.com:lystudio_top/file_monitor.git
lystudio_top
file_monitor
File_Monitor
master

Search