mirror of
https://github.com/eclipse-paho/paho.mqtt.cpp.git
synced 2025-09-15 12:58:39 +08:00
Moved samples to top-level and renamed 'examples'
This commit is contained in:
parent
773f4e9d66
commit
c36d123042
@ -39,7 +39,8 @@ else()
|
||||
option(PAHO_BUILD_DEB_PACKAGE "Build debian package" FALSE)
|
||||
endif()
|
||||
|
||||
option(PAHO_BUILD_SAMPLES "Build sample programs" FALSE)
|
||||
option(PAHO_BUILD_SAMPLES "Build sample/example programs" FALSE)
|
||||
option(PAHO_BUILD_EXAMPLES "Build sample/example programs" FALSE)
|
||||
option(PAHO_BUILD_TESTS "Build tests (requires Catch2)" FALSE)
|
||||
option(PAHO_BUILD_DOCUMENTATION "Create and install the API documentation (requires Doxygen)" FALSE)
|
||||
option(PAHO_WITH_MQTT_C "Build Paho C from the internal GIT submodule." FALSE)
|
||||
@ -133,10 +134,10 @@ else()
|
||||
set(PAHO_CPP_LIB paho-mqttpp3-static)
|
||||
endif()
|
||||
|
||||
# --- Sample Apps ---
|
||||
# --- Example Apps ---
|
||||
|
||||
if(PAHO_BUILD_SAMPLES)
|
||||
add_subdirectory(src/samples)
|
||||
if(PAHO_BUILD_SAMPLES OR PAHO_BUILD_EXAMPLES)
|
||||
add_subdirectory(examples)
|
||||
endif()
|
||||
|
||||
# --- Unit Tests ---
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
#*******************************************************************************
|
||||
# This is part of the Paho MQTT C++ client library.
|
||||
#
|
||||
# Copyright (c) 2016-2023
|
||||
# Copyright (c) 2016-2024
|
||||
#
|
||||
# All rights reserved. This program and the accompanying materials
|
||||
# are made available under the terms of the Eclipse Public License v2.0
|
||||
Loading…
Reference in New Issue
Block a user