CMake: Advanced Topics¶
![CMake logo](../../../../../_images/logo.jpg)
Topics¶
- Targets, Properties, And More
- Screenplay: Public And Private Include Directories
- The Language
- Screenplay: Function Wrapping
add_library()
- Screenplay: Adding
SQLite3
External Dependency - Screenplay: Making
SQLite3
Optional (target_compile_definitions()
) - Screenplay: Making
SQLite3
Optional (configure_file()
) - Screenplay: Integrating
libmosquitto
(MQTT - Handwritten Find-Module) - Screenplay: Generated Code (
add_custom_command()
) - Running Tests
Alternative Topics¶
Dependencies¶
Todo jjj 🤘¶
Modules
googletest how?
https://cmake.org/cmake/help/latest/module/GoogleTest.html#command:gtest_discover_tests probably not. read docs, “may not work cross”
optional tests, depending on
GTest::Main
find modules: pkgconfig? suppose not
fetchcontent() and https://cmake.org/cmake/help/latest/module/ExternalProject.html#module:ExternalProject
if you find yourself doing this, you should better use conan or yocto or distribution pakage managers