Various templates for C++ projects. Bash scripts can be used for generating new projects
Template for libraries. File hierarchy:
libmycudalibrary ├── bin │ └── libmylibrary (Build output directory) │ └── test (Test executables directory) │ └── bin.pri (Configuring build outputs) │ └── configuration.pri (Get architecture (x64 release, x86 debug) and platform (unix, MSVC2017, MSVC2019, ...)) ├── include │ └── include.pri (Include paths and header files) │ └── lib.pri (Libraries) ├── src │ └── libmylibrary-ALL.pro (Qt SUBDIR project file includes project & Google test project) │ └── libmylibrary.pro (Base project) │ └── src.pri (Includes source and form files) ├── test (Google test project) │ └── gtest_dependency.pri (Configures Google Test Suite) │ └── libmylibrary-test.pro (Test project, includes test source files) └── libmylibrary.pri (The library can be linked from another project by including this)
- libmylibrary.sh bash script can be used for generating a new project.
Template for libraries with CUDA. It has the same structure as libmylibrary, only CUDA related modifications exist.
libmycudalibrary ├ ... ├── src │ └── ... │ └── cuda.pri (Configuring CUDA compiler) ...