feat(cmake): add the FairMQ::FairMQ alias target to the build tree

- Projects that add FairMQ with add_subdirectory() use the same target
  name as projects that use the installed package

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Claude
2026-11-09 22:43:43 +00:00
committed by Dennis Klein
parent 0dfbb73d86
commit 268fcafcc6

View File

@@ -158,6 +158,7 @@ if(BUILD_FAIRMQ)
${FAIRMQ_PUBLIC_HEADER_FILES} # for IDE integration
${FAIRMQ_PRIVATE_HEADER_FILES} # for IDE integration
)
add_library(${PROJECT_NAME}::${target} ALIAS ${target})
target_compile_features(${target} PUBLIC cxx_std_17)
set_target_properties(${target} PROPERTIES LABELS coverage)