GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — pubsublib/CMakeLists.txt at main · ihedvall/pubsublib Expand file tree/ Copy pathCMakeLists.txtMore file actions 122 lines (102 loc) · 4.18 KB / Copy pathCMakeLists.txtFile metadata and controls122 lines (102 loc) · 4.18 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 # Copyright 2022 Ingemar Hedvall # SPDX-License-Identifier: MIT include(CMakePrintHelpers) cmake_minimum_required(VERSION 3.10) project(pubsublib VERSION 1.0 DESCRIPTION "C++ library including publish/subscribe protocols." LANGUAGES CXX C ) cmake_policy(SET CMP0074 NEW) cmake_policy(SET CMP0144 NEW) option(BUILD_SHARED_LIBS "Static libraries are preferred" OFF) option(PUB_BUILD_DOC "If doxygen is installed, then build documentation in Release mode" OFF) option(PUB_BUILD_TEST "If Google Test is installed, then build the unit tests" OFF) option(PUB_BUILD_TOOL "If stand-alone applications should be build" OFF) set(CMAKE_CXX_STANDARD 20) set(CMAKE_DEBUG_POSTFIX d) include(script/utillib.cmake) include(script/workflowlib.cmake) include(script/boost.cmake) include(script/openssl.cmake) include(script/expat.cmake) include(script/mqtt.cmake) include(script/protobuf.cmake) # include(script/tahu.cmake) if (PUB_BUILD_DOC) include(script/doxygen.cmake) endif() if (PUB_BUILD_TEST) include(script/googletest.cmake) endif() add_library(pubsub STATIC src/ipubsubclient.cpp include/pubsub/ipubsubclient.h src/itopic.cpp include/pubsub/itopic.h src/mqttclient.cpp src/mqttclient.h src/mqtttopic.cpp src/mqtttopic.h proto/sparkplug_b.proto src/metric.cpp include/pubsub/metric.h src/payload.cpp include/pubsub/payload.h src/payloadhelper.cpp src/payloadhelper.h src/pubsubfactory.cpp include/pubsub/pubsubfactory.h src/sparkplugnode.cpp src/sparkplugnode.h src/detectbroker.cpp src/detectbroker.h src/sparkplughost.cpp src/sparkplughost.h src/sparkplughelper.cpp src/sparkplughelper.h src/sparkplugtopic.cpp src/sparkplugtopic.h src/sparkplugdevice.cpp src/sparkplugdevice.h src/metricproperty.cpp include/pubsub/metricproperty.h include/pubsub/metrictype.h src/metricmetadata.cpp include/pubsub/metricmetadata.h src/pubsubworkflowfactory.cpp src/pubsubworkflowfactory.h src/pubsubworkflowfactory.h) protobuf_generate( TARGET pubsub OUT_VAR PROTO_GENERATED_FILES LANGUAGE cpp IMPORT_DIRS ${CMAKE_CURRENT_DIR}/proto #PROTOS proto/sparkplug_b.proto PROTOC_OUT_DIR ${CMAKE_CURRENT_BINARY_DIR}) cmake_print_variables(CMAKE_CURRENT_BINARY_DIR PROTO_GENERATED_FILES) get_target_property(PAHO_C_INCLUDE_DIRS eclipse-paho-mqtt-c::paho-mqtt3as-static INTERFACE_INCLUDE_DIRECTORIES) target_include_directories(pubsub PUBLIC $<INSTALL_INTERFACE:include> $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include> ) target_include_directories(pubsub PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/proto) target_include_directories(pubsub PRIVATE ${utillib_SOURCE_DIR}/include) target_include_directories(pubsub PRIVATE ${workflowlib_SOURCE_DIR}/include) target_include_directories(pubsub PRIVATE ${Boost_INCLUDE_DIRS}) target_include_directories(pubsub PRIVATE ${EXPAT_INCLUDE_DIRS}) #target_include_directories(pubsub PRIVATE ${ZLIB_INCLUDE_DIRS}) target_include_directories(pubsub PRIVATE ${OPENSSL_INCLUDE_DIR}) target_include_directories(pubsub PRIVATE ${PAHO_C_INCLUDE_DIRS}) target_include_directories(pubsub PRIVATE ${Protobuf_INCLUDE_DIRS}) #target_include_directories(pubsub PRIVATE ${TAHU_C_INCLUDE_DIR}) target_include_directories(pubsub PRIVATE ${CMAKE_CURRENT_BINARY_DIR}) cmake_print_properties(TARGETS pubsub PROPERTIES INCLUDE_DIRECTORIES) target_compile_definitions(pubsub PRIVATE XML_STATIC) if (MSVC) target_compile_definitions(pubsub PRIVATE _WIN32_WINNT=0x0A00) endif() if (PUB_BUILD_TEST) enable_testing() add_subdirectory(test) endif() if (PUB_BUILD_DOC AND DOXYGEN_FOUND AND (CMAKE_BUILD_TYPE MATCHES "^[Rr]elease") ) set(DOXYGEN_RECURSIVE NO) set(DOXYGEN_REPEAT_BRIEF NO) set(DOXYGEN_PROJECT_NAME "PubSubLib") set(DOXYGEN_HTML_EXTRA_STYLESHEET doxygen/utillib.css) set(DOXYGEN_OUTPUT_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/docs/manual) doxygen_add_docs( doc_pubsub ALL include/pubsub doxygen COMMENT "Publish/Subscribe Library generating API documentation with Doxygen") endif() |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |