mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2026-11-25 21:21:37 +00:00
ci: check the installed package with a downstream project
- Install to a prefix, relocate it and build a minimal consumer that uses find_package(FairMQ) and FairMQ::FairMQ - Fail if documented package variables are missing or if installed files still refer to the original prefix Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
19
test/consumer/main.cxx
Normal file
19
test/consumer/main.cxx
Normal file
@@ -0,0 +1,19 @@
|
||||
/********************************************************************************
|
||||
* Copyright (C) 2026 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" *
|
||||
********************************************************************************/
|
||||
|
||||
#include <fairmq/Device.h>
|
||||
#include <fairmq/Version.h>
|
||||
|
||||
#include <iostream>
|
||||
|
||||
int main()
|
||||
{
|
||||
fair::mq::Device device;
|
||||
std::cout << "FairMQ " << FAIRMQ_VERSION << " consumer ok\n";
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user