diff --git a/examples/cpp/request_reply/CMakeLists.txt b/examples/cpp/request_reply/CMakeLists.txt index 868bea9713a..bcfc2304383 100644 --- a/examples/cpp/request_reply/CMakeLists.txt +++ b/examples/cpp/request_reply/CMakeLists.txt @@ -35,10 +35,12 @@ if(CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang") endif() message(STATUS "Configuring ${PROJECT_NAME}...") -file(GLOB_RECURSE REQUEST_REPLY_SOURCES_CXX "*.cxx") -file(GLOB_RECURSE REQUEST_REPLY_SOURCES_CPP "*.cpp") +file(GLOB REQUEST_REPLY_TYPES_SOURCES_CXX "types/*.cxx") +file(GLOB REQUEST_REPLY_SOURCES_CXX "*.cxx") +file(GLOB REQUEST_REPLY_TYPES_SOURCES_CPP "types/*.cpp") +file(GLOB REQUEST_REPLY_SOURCES_CPP "*.cpp") -add_executable(request_reply ${REQUEST_REPLY_SOURCES_CXX} ${REQUEST_REPLY_SOURCES_CPP}) +add_executable(request_reply ${REQUEST_REPLY_SOURCES_CXX} ${REQUEST_REPLY_SOURCES_CPP} ${REQUEST_REPLY_TYPES_SOURCES_CXX} ${REQUEST_REPLY_TYPES_SOURCES_CPP}) target_compile_definitions(request_reply PRIVATE $<$>,$>:__DEBUG> $<$:__INTERNALDEBUG> # Internal debug activated.