-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from danlangford/file-organization
new dir structure idea
- Loading branch information
Showing
17 changed files
with
27 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
The project leverages CMake, a cross-platform build management tool. | ||
Most popular IDEs, like CLion and Visual Studio, understand and support CMake based projects. | ||
|
||
The C++ project structure I have chosen to follow is detailed on [Project Heuristics](https://medium.com/heuristics/c-application-development-part-1-project-structure-454b00f9eddc). | ||
The C++ convention for CMake builds is what is called an "out of source" build, meaning you give room for your build to generate artifacts that dont clutter your source directories. | ||
The `.gitignore` has been tuned for out of source builds to happen in the `./build/` dir. | ||
|
||
Consider using a pattern like the one below for your builds should you want to build the project in a non-IDE, command line way. | ||
|
||
*nix environments | ||
```sh | ||
mkdir -p build | ||
cd build | ||
cmake .. | ||
make | ||
``` | ||
|
||
windows ms visual studio environments | ||
```sh | ||
\path\to\VsDevCmd.bat | ||
mkdir build | ||
cd build | ||
cmake .. | ||
devenv bmai.sln /build | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.