https://github.com/rbento/cmake-multiexec-starter
Template for CMake projects with dependencies and which are expected to generate one separate executable per source file.
https://github.com/rbento/cmake-multiexec-starter
c cmake cmakelists visual-studio
Last synced: 6 months ago
JSON representation
Template for CMake projects with dependencies and which are expected to generate one separate executable per source file.
- Host: GitHub
- URL: https://github.com/rbento/cmake-multiexec-starter
- Owner: rbento
- License: mit
- Created: 2021-01-17T20:45:58.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2023-07-28T00:47:41.000Z (over 2 years ago)
- Last Synced: 2025-02-02T15:33:59.976Z (11 months ago)
- Topics: c, cmake, cmakelists, visual-studio
- Language: CMake
- Homepage:
- Size: 14.6 KB
- Stars: 3
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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 `
- Right click a source file in the `Solution Explorer` and `Set as Startup Item`
- Build with `Ctrl+B`
- Debug with `F5`