Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for additional types in dynsub example #1776

Merged
merged 4 commits into from
Jul 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading