File indexing completed on 2024-05-05 04:39:25

0001 /*
0002     SPDX-FileCopyrightText: 2006 Matt Rogers <mattr@kde.org>
0003     SPDX-FileCopyrightText: 2007-2008 Aleix Pol <aleixpol@gmail.com>
0004 
0005     SPDX-License-Identifier: GPL-2.0-or-later
0006 */
0007 
0008 #ifndef CMAKEMODELITEMS_H
0009 #define CMAKEMODELITEMS_H
0010 
0011 #include <project/projectmodel.h>
0012 #include <interfaces/iproject.h>
0013 #include <language/duchain/topducontext.h>
0014 #include <parser/cmakelistsparser.h>
0015 #include <util/path.h>
0016 
0017 class CMakeTargetItem : public KDevelop::ProjectExecutableTargetItem
0018 {
0019     public:
0020         CMakeTargetItem(KDevelop::ProjectBaseItem* parent, const QString& name, const KDevelop::Path &builtUrl);
0021 
0022         void setBuiltUrl(const KDevelop::Path &builtUrl) { m_builtUrl = builtUrl; }
0023         QUrl builtUrl() const override;
0024         QUrl installedUrl() const override;
0025 
0026     private:
0027         KDevelop::Path m_builtUrl;
0028 };
0029 
0030 #endif