cmake: use FetchContent for some dependencies (#6560)

this transition is _not_ complete, but we use FetchContent for
RapidJSON, PajladaSerialize, PajladaSettings, and PajladaSignals.

In the future, we can move towards providing as many of our dependencies
as possible through conan & vcpkg so submodule-less builds are possible.
This commit is contained in:
pajlada
2025-11-02 21:45:27 +01:00
committed by GitHub
parent 072bc897a0
commit e7668212bd
12 changed files with 49 additions and 83 deletions
+5 -4
View File
@@ -18,9 +18,10 @@ template <typename T>
struct SignalVectorItemEvent;
template <typename TVectorItem>
class SignalVectorModel : public QAbstractTableModel,
pajlada::Signals::SignalHolder
class SignalVectorModel : public QAbstractTableModel
{
pajlada::Signals::SignalHolder signalHolder;
public:
SignalVectorModel(int columnCount, QObject *parent = nullptr)
: QAbstractTableModel(parent)
@@ -66,9 +67,9 @@ public:
insert(args);
}
this->managedConnect(vec->itemInserted, insert);
this->signalHolder.managedConnect(vec->itemInserted, insert);
this->managedConnect(vec->itemRemoved, [this](auto args) {
this->signalHolder.managedConnect(vec->itemRemoved, [this](auto args) {
if (args.caller == this)
{
return;