feat(examples): Add new example with custom controller plugin (statically compiled in)

This commit is contained in:
Dennis Klein
2022-08-23 20:10:20 +02:00
committed by Alexey Rybalchenko
parent 4587af2eb4
commit faa309556f
5 changed files with 186 additions and 1 deletions

View File

@@ -0,0 +1,20 @@
################################################################################
# Copyright (C) 2022 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH #
# #
# This software is distributed under the terms of the #
# GNU Lesser General Public Licence (LGPL) version 3, #
# copied verbatim in the file "LICENSE" #
################################################################################
set(target fairmq-ex-custom-controller)
add_executable(${target} main.cxx)
target_link_libraries(${target} PRIVATE FairMQ)
set_target_properties(${target} PROPERTIES
CXX_VISIBILITY_PRESET hidden
ENABLE_EXPORTS ON
)
set(test Example.custom-controller)
add_test(NAME ${test} COMMAND ${CMAKE_CURRENT_BINARY_DIR}/${target})
set_tests_properties(${test} PROPERTIES TIMEOUT 30)