Adds an extremely basic shared library

This commit is contained in:
2023-03-08 19:23:01 -06:00
parent 9e92799698
commit d71f284625
5 changed files with 56 additions and 15 deletions
+12
View File
@@ -0,0 +1,12 @@
#include "File.h"
File::File(const std::string name):
name(name)
{
}
const std::string File::getName() const {
return name;
}
// vim: set ts=4 expandtab :
+5
View File
@@ -1,10 +1,15 @@
#include "CLI/CLI.hpp"
#include "File.h"
#include <iostream>
int main(int argc, char *argv[]){
CLI::App app{"Just a simple 'hello'"};
CLI11_PARSE(app, argc, argv);
File afile("aname");
std::cout << "Hello World!" << std::endl;
std::cout << "File name is: " << afile.getName() << std::endl;
return 0;
}