Common CMake tools and wrappers to use in other repositories.
A wrapper file including all other CMake modules:
conan.cmakeinstall.cmakewarnings.cmake
conan_init(generator)- initializes CMake with data from Conan Package Manger (if present)
CMAKE_SCRIPTS_ROOT- a path to scripts directoryinstall_targets(targets...)- marks provided targets for installation in typical destination directoriesconfigure_and_install(configure_in_file_path, namespace, version_compare_rules)- creates CMake package version and config files based on a provided template, and installs them together with${CMAKE_PROJECT_NAME}Targets``EXPORT` target.
set_warnings(treat_warnings_as_errors)- very restrictive compilation warning flags settings for Continuous Integration and local builds. It should not be used in the library projectCMakeLists.txtfile to not force other users using this library to compile their projects with our flags or even worse to modify their preset flags by our scripts.