https://github.com/armaancpro/premaketemplate
C++ Premake Core/App Project Template
https://github.com/armaancpro/premaketemplate
build-system cpp premake premake5 template
Last synced: about 1 month ago
JSON representation
C++ Premake Core/App Project Template
- Host: GitHub
- URL: https://github.com/armaancpro/premaketemplate
- Owner: ArmaanCPro
- License: unlicense
- Created: 2025-01-12T04:58:35.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-12T05:13:28.000Z (over 1 year ago)
- Last Synced: 2025-03-08T01:11:30.349Z (over 1 year ago)
- Topics: build-system, cpp, premake, premake5, template
- Language: Lua
- Homepage:
- Size: 3.65 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Premake Template for C++
I use premake a lot. I like it. I like it a lot. I like it (and you) so much that I made a template for you.
Jokes aside, this template uses a core and app architecture. Core builds as a static library, and app builds as an executable that links to core.
## How to use
- Once you've cloned the projects, I'd recommend changing the folder names to suit your project, as well as editing the Build.lua files to change the workspace/solution & project names.
- Run the script according to your platform in the .scripts folder to generate the project. Hopefully the mac one works, can't confirm tho
- You can also pretty easily change this setup to work for c, you just have to change the language and language version in the Build.lua files
## Dependencies
- The template only depends on premake5 (currently v5.0.0-beta4)
- You can add your own dependencies in the build.lua files.
- Usually only the core project should have dependencies (you can create a vendor folder in the core dir and add the dependencies there)
- Then link the deps similarly to how core is linked to app
## Included
- Sample code
- `.gitignore` for Visual Studio. You can add your ide/platform specific excludes
- `.editorconfig` which currently uses a unix style
- Hopefully working sample code
## License
- UNLICENSE for this (see `UNLICENSE.txt`)
- Premake is licensed under the BSD 3-Clause License (see `LICENSE.txt`)