mirror of
https://gitlab.fdmci.hva.nl/technische-informatica-sm3/ti-projectten/rooziinuubii79.git
synced 2025-08-03 03:45:00 +00:00
16 lines
452 B
CMake
16 lines
452 B
CMake
cmake_minimum_required(VERSION 3.10)
|
|
set(CMAKE_CXX_STANDARD 23)
|
|
|
|
# Find the Paho MQTT C++ library
|
|
find_library(PAHO_MQTTPP_LIBRARY paho-mqttpp3 PATHS /usr/local/lib)
|
|
find_library(PAHO_MQTT_LIBRARY paho-mqtt3a PATHS /usr/local/lib)
|
|
|
|
# Include the headers
|
|
include_directories(/usr/local/include)
|
|
|
|
# Add the executable
|
|
add_executable(my_program main.cpp)
|
|
|
|
# Link the libraries
|
|
target_link_libraries(my_program ${PAHO_MQTTPP_LIBRARY} ${PAHO_MQTT_LIBRARY})
|