Skip to content

huzeyfe-erkek/Cpp-Project-Templates

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 

Repository files navigation

C++ Project Templates

Various templates for C++ projects. Bash scripts can be used for generating new projects.

QMake

Template for libraries. File hierarchy:

libmylibrary
 ├── build                                (Build output directory. Binaries are always created in this directory)
 ├── include                              ("*.h" files are automatically read from this directory) 
 │   └── libtest1_global.h
 ├── src                                  ("*.cpp" and "*.ui" files are automatically read from this directory) 
 ├── test                                 (Google test project)
 ├── CHANGELOG.md                         (Release notes)
 ├── configuration.pri                    (Get architecture (x64 release, x86 debug) and platform (Unix, MSVC2017, MSVC2019, etc.))
 ├── gtest_dependency.pri                 (Configures Google Test Suite)
 ├── ISSUES.md                            (Known issues of the releases)
 ├── libmylibrary-src.pro                 (Base project)
 ├── libmylibrary-test.pro                (Test project, includes test source files)
 ├── libmylibrary.pri                     (The library can be linked from another project by including this file)
 ├── libmylibrary.pro                     (Qt SUBDIR project file, includes base project & Google test project)
 └── README.md
  • 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.

libmycudalibrary
 ├
 ... 
 ├── cuda.pri                             (Configuring CUDA compiler)
 ...