<div dir="ltr">Hi,<div><br></div><div>I tried searching for an example project (perhaps already on github) to follow but my Google skills have failed me.</div><div><br></div><div>There are some projects that are already compiled and I would like to fork those projects and write a CMakeLists.txt file for them such that they can be added by other CMake projects easily.</div><div><br></div><div>For instance, for the library: <a href="https://github.com/ygpark/Everything-SDK">https://github.com/ygpark/Everything-SDK</a>, how would I write a CMakeLists.txt file such that:</div><div><br></div><div>=> the project has a CMake library named "Everything" (which is normally the result of add_library)</div><div>=> it's headers, lib and dll files specified in the target "Everything" properly</div><div>=> install() command to install the above for the target "Everything"</div><div>=> CMake generates the relevant "-config.cmake" file so that the library can be easily found using the find_library() command</div><div><br></div><div>If an example already exists using modern CMake techniques, a link to it would be wonderful.</div><div><br></div><div>Thanks,</div><div>Saad</div></div>