In my previous post, “Simple Modern CMake Tutorial Part 1~ Short introduction of “Object oriented” Modern CMake”, I explained about the most important aspect of Modern CMake, which is the concept of target and properties. Using Modern CMake features like target_link_libraries, target_include_directories, we can achieve modular design in CMake packages structure. In the tutorial, we actually created example CMake packages to demonstrate how to export, install a custom CMake package and how to import it from another CMake package (Here is the link to the Github repository).

#cmake #coding #software-development #programming #cplusplus

How to Set and Request Specific Package Version in CMake
1.15 GEEK