Skip to content

shvass/cmake-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Template library for C/C++ projects

project directory structure and significance

tests/ - contains test files. Each cpp file here is compiled and evaluated as a seperate test. Header files are ignored. Tests are generated based on file name.

cmake/ - contains cmake build scripts.

deps/ - contains dependencies / submodules. the contents in this directories are build seperately from the project source.

all other directories - all the cpp files in all remaining directories are compiled into a seperate library and linked with main project executable and tests.

pch.hpp - this header file is precompiled.

projectNameHere.cpp in root directory - is assumed to contain main function.

how to setup ?

  • replace projectNameHere with your project name in CMakeLists.txt
  • add searchLib calls to find required libraries in CMakeLists.txt
  • rename projectNameHere.cpp

About

template repository for cmake projects

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published