Skip to content

Template for CMake projects with dependencies and which are expected to generate one separate executable per source file.

License

Notifications You must be signed in to change notification settings

rbento/cmake-multiexec-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cmake-multiexec-starter

About


Template for CMake projects with dependencies and which are expected to generate one separate executable per C source file

  • Useful for projects containing multiple distinct code examples

  • Each C source file is expected to have an entry point

Usage


General
  • Add/Clone libraries to Resources > Libraries
  • Update libraries in CMakeLists.txt accordingly
  • Update project name in CMakeLists.txt
Visual Studio
  • Open a local folder
  • Project > Generate cache for <project-name>
  • Right click a source file in the Solution Explorer and Set as Startup Item
  • Build with Ctrl+B
  • Debug with F5

About

Template for CMake projects with dependencies and which are expected to generate one separate executable per source file.

Topics

Resources

License

Stars

Watchers

Forks