project('cmake-executable-dependency', 'c') cmake = import('cmake') cmlib = cmake.subproject('cmlib') maind = cmlib.dependency('main')