Skip to content

Commit

Permalink
Merge pull request #1776 from dpotman/dynsub-fixes
Browse files Browse the repository at this point in the history
Support for additional types in dynsub example
  • Loading branch information
eboasson authored Jul 20, 2023
2 parents a295527 + e06fc3e commit a1ed0ff
Show file tree
Hide file tree
Showing 7 changed files with 1,355 additions and 342 deletions.
4 changes: 4 additions & 0 deletions examples/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ if (ENABLE_TOPIC_DISCOVERY)
FILES
dynsub/variouspub_types.idl
dynsub/dynsub.c
dynsub/dynsub.h
dynsub/type_cache.c
dynsub/print_sample.c
dynsub/print_type.c
dynsub/variouspub.c
dynsub/CMakeLists.txt
dynsub/readme.rst
Expand Down
16 changes: 12 additions & 4 deletions examples/dynsub/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#
# Copyright(c) 2021 ZettaScale Technology and others
# Copyright(c) 2023 ZettaScale Technology and others
#
# This program and the accompanying materials are made available under the
# terms of the Eclipse Public License v. 2.0 which is available at
Expand All @@ -8,15 +7,24 @@
# http://www.eclipse.org/org/documents/edl-v10.php.
#
# SPDX-License-Identifier: EPL-2.0 OR BSD-3-Clause
#

cmake_minimum_required(VERSION 3.16)
project(dynsub LANGUAGES C)

if(NOT TARGET CycloneDDS::ddsc)
find_package(CycloneDDS REQUIRED)
endif()

add_executable(dynsub dynsub.c)
set(headers
dynsub.h)
set(sources
dynsub.c
type_cache.c
print_type.c
print_sample.c)

add_executable(dynsub ${sources} ${headers})

if(TARGET CycloneDDS::ddsc)
# shouldn't need this ...
target_include_directories(dynsub
Expand Down
Loading

0 comments on commit a1ed0ff

Please sign in to comment.