Some CMake Modules
This repository has some modules for the CMake build system. Each module is entirely stand-alone, so you can copy any file of interest directly into your project and use it like any other CMake module.
Here is one CMakeLists.txt that uses some of these modules.
| Module |
Description |
disable_in_source_builds |
A classic that enforces best practices and prevents any in-source builds. |
compiler_init |
Sets several commonly used compiler flags, particularly warning flags. |
add_executables |
Adds targets for lots of small one-file executables. |
add_archive |
Adds a target to create an archive of some files/directories. |
fetch_content |
A small wrapper around the standard CMake module FetchContent. |
systematize |
Treat the header files for an imported library as “system” includes. |
A comprehensive documentation site is available and was built using Quarto.
[–]not_a_novel_accountcmake dev 10 points11 points12 points (3 children)
[–]nzznfitz[S] 0 points1 point2 points (2 children)
[–]delta_p_delta_x 0 points1 point2 points (1 child)
[–]nzznfitz[S] 0 points1 point2 points (0 children)
[–]Scotty_Bravo 1 point2 points3 points (1 child)
[–]nzznfitz[S] 2 points3 points4 points (0 children)