2
0

Retrait des bibliothèques superflues pour l'exercice sarii

This commit is contained in:
2026-01-09 19:45:24 +01:00
parent 8a4c0a501d
commit 1491c30e75
4 changed files with 121 additions and 89 deletions

View File

@@ -20,40 +20,19 @@ add_executable(pompes
# CURL
find_package(CURL REQUIRED)
# Microhttpd
find_library(MICROHTTPD_LIB microhttpd REQUIRED)
# Threads et compression
find_package(Threads REQUIRED)
find_library(Z_LIB z REQUIRED)
# ncursesw
find_library(NCURSESW_LIB ncursesw REQUIRED)
# RabbitMQ C client
find_library(RABBITMQ_LIB rabbitmq REQUIRED)
# Paho MQTT C client
find_library(PAHO_MQTTPP3_LIB paho-mqttpp3 REQUIRED)
find_library(PAHO_MQTT3C_LIB paho-mqtt3c REQUIRED)
# -------------------------------
# Prometheus C++
# -------------------------------
find_package(prometheus-cpp REQUIRED)
# -------------------------------
# Lien des bibliothèques
# -------------------------------
target_link_libraries(pompes
prometheus-cpp::core
prometheus-cpp::pull
${CURL_LIBRARIES}
${MICROHTTPD_LIB}
Threads::Threads
${Z_LIB}
${NCURSESW_LIB}
${RABBITMQ_LIB}
${PAHO_MQTT3C_LIB} # dépendance C
${PAHO_MQTTPP3_LIB} # lib C++
)