Commit df448b0
authored
Initial effort to incorporate modern practices in top-level CMakeLists file (#365)
* feat: Initial effort to incorporate modern practices in top-level CMakeLists file
- changes minimum cmake required version to 3.13.4 (default from the repos of oldest supported Debian as of June 2023)
- adds project description and homepage url
- explicitly sets the LANGUAGES keyword in the project() command as recommended in best practice guides
- enforces language standard to c++17
- disables compiler-specific extensions that are otherwise enabled by default in CMake
- exports the compilation database of the project (compile_commands.json) into CMAKE_BINARY_DIR
- adds a custom command to symlink (filesystem agnostically) the compilation database from CMAKE_BINARY_DIR to PROJECT_SOURCE_DIR to be picked up by IDEs and static analysers
* fix: update project URL to point to correct location1 parent 63f4cfd commit df448b0
2 files changed
+22
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
132 | | - | |
| 132 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
3 | 21 | | |
4 | 22 | | |
5 | 23 | | |
| |||
33 | 51 | | |
34 | 52 | | |
35 | 53 | | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
| 54 | + | |
41 | 55 | | |
42 | 56 | | |
43 | 57 | | |
| |||
0 commit comments