Mastering Cmake Pdf -
,
Evaluated during build system generation, not during CMake configuration. mastering cmake pdf
if(BUILD_TESTS) enable_testing() add_subdirectory(tests) endif() , Evaluated during build system generation, not during
This guide covers both aspects with production-ready examples. Evaluated during build system generation
| Modifier | Effect | |------------|-------------------------------------------------------------------------| | PRIVATE | Used only by this target, not by dependents (e.g., internal .cpp includes) | | PUBLIC | Used by this target and all dependents (e.g., header include dirs) | | INTERFACE | Used only by dependents, not by this target (e.g., header-only libs) |
Sometimes you want to embed a PDF file (like a template or manual) directly into your binary executable so it doesn't have to be carried as a separate file.