Welcome to TemplateProject!
TemplateProject is a C++ executable designed to load any project creator as a dynamic library.
Follow these step in order to build the TemplateProject executable and a first project creator library.
git clone https://github.com/sousav/TemplateProject.git
cd TemplateProject
mkdir build && cd build
cmake .. && make TemplateProject CppConsole
./TemplateProject -h
It should output:
Usage:
-h, --help
Shows this help message.
-n, --name
[requiered] Specify the project name.
-t, --type
[requiered] Specify the project type.
-p, --path
Specify the path where the project must be created.
default: "./name"
-l, --list
List all project type possibilities.
After running
make install
you should be able to run
TemplateProject -h
All installed files can be checked with
ls -LR /usr/local/bin/TemplateProject*
which should ouput the following
/usr/local/bin/TemplateProject
/usr/local/bin/TemplateProjectCreator:
Creators TemplateProject
/usr/local/bin/TemplateProjectCreator/Creators:
libCppConsole.so
You can see that there is two required parameters:
--name=YourProjectName --type=TheCreatorNeeded
You can get the list of all loaded project creator with
TemplateProject --list
It should output
2018-04-22 19:01:32.559 MainClass INFO Possible project type:
2018-04-22 19:01:32.559 MainClass INFO CppConsole
2018-04-22 19:01:32.559 MainClass INFO CppLibrary
2018-04-22 19:01:32.559 MainClass INFO CppSharedLibrary
2018-04-22 19:01:32.559 MainClass INFO ProjectCreator
This means the TemplateProject executable found the library CppConsole. Therefore you can use
--type=CppConole
in order to create a C++ console project.
There is also a third parameter
--path=Your/Project/Path
If not specified, your project will be create using the following path
/your/pwd/YourProjectName
WARNING:
If using an existing directory, it must be empty.
Otherwise, it will be created.
In order to create a C++ console project, named TestProject
TemplateProject --name TestProject --type CppConsole
In order to create a C++ console project, named TestProject in your working directory
TemplateProject --name TestProject --type CppConsole --path=.
- argagg C++ command line argument/option parser.
- LoggerCpp A simple, elegant and efficient C++ logger library.
- embed-resource Embed binary files and resources.
All feedback greatly appreciated.