blob: 270ed9f18adafc8fef597c9019caac2fe3896bc4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
# This software is supplied under the terms of the MIT License, a
# copy of which should be located in the distribution where this
# file was obtained (LICENSE.txt). A copy of the license may also be
# found online at https://opensource.org/licenses/MIT.
# This CMakeLists file assumes you have INSTALLED NNG.
# It does not work from the NNG source tree directly.
cmake_minimum_required(VERSION 3.15)
project(pubsub_forwarder C)
# Find the nng library
find_package(nng CONFIG REQUIRED)
# Add the executable target
add_executable(pubsub_forwarder pubsub_forwarder.c)
target_compile_options(pubsub_forwarder PRIVATE -Wall -Wextra -Wpedantic -Werror -O2)
# Link against the nng library
target_link_libraries(pubsub_forwarder PRIVATE nng::nng)
|