1 2 3 4 5 6 7 8 9 10 11 12
project( 'cmake config file', ) cmake = import('cmake') cmake.configure_package_config_file( name : 'foolib', input : 'foolib.cmake.in', install_dir : get_option('libdir') / 'cmake', configuration : {'foo': '"bar"'}, )