https://github.com/connorsweeneydev/cpptemplate
An easily modifiable template for C++ projects that compiles using the MinGW toolchain on Windows and natively on Linux.
https://github.com/connorsweeneydev/cpptemplate
cpp makefile mingw template-project
Last synced: 12 months ago
JSON representation
An easily modifiable template for C++ projects that compiles using the MinGW toolchain on Windows and natively on Linux.
- Host: GitHub
- URL: https://github.com/connorsweeneydev/cpptemplate
- Owner: ConnorSweeneyDev
- Created: 2024-09-16T09:29:21.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-19T08:31:35.000Z (over 1 year ago)
- Last Synced: 2025-01-10T14:44:10.186Z (over 1 year ago)
- Topics: cpp, makefile, mingw, template-project
- Language: Makefile
- Homepage:
- Size: 45.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Building and Executing
This project is optimized to be built with the following targets in mind:
- Windows 11 MinGW 64-bit GCC 14.2.0
- Ubuntu 18.04 GLIBC Version 2.27
Version information for dependencies can be found in `external/version_info.txt`.
By default, the executables are statically linked, although requirements for linking vary by project.
After following the platform specific instructions below you can execute `script/build.sh` followed by `script/run.sh`
from the root of the project to build and run the project.
### Windows
Do the following to ensure your environment is set up correctly:
- Download a 64-bit [MinGW](https://winlibs.com/) distribution with Clang/LLVM support and put the `[DISTRIBUTION]/bin`
directory in your path.
- Install GNUMake by running `winget install ezwinports.make`.
- Ensure that you have `[GIT_INSTALLATION]/bin` in your path.
### Linux
Do the following on Ubuntu to ensure your environment is set up correctly:
- Only run `sudo apt update && sudo apt upgrade` if you haven't already.
- Run `sudo apt install git g++ gdb make`.