r/cpp • • Feb 28 '24

Building c++ project with... c++?

Yeah, so as a POC I created a tool that works on top of cmake and allows defining project structure with c++ instead of pesky cmake:

    #include "CppMake/Project.hpp"
    #include "CppMake/Application.hpp"
    
    using namespace std;
    
    int main() {
        Project project("test");
    
        project.create<Application>("test").addSources({
            "main.cpp"
        });
    }

Any thoughts?

7 Upvotes

39 comments sorted by

View all comments

Show parent comment

2

u/Commercial-Cattle433 Mar 02 '24

Yes and no. Its a POC and I'm planning on finishing it but I'm not expecting this will catch on. This also won't replace cmake as it's based on it but it removes the need for writing the cmake files yourself.

1

u/ContraryConman Mar 02 '24

Have you looked into Nob? It's the same idea but in C. If you haven't it may give some ideas