# creating CMakeLists.txt

**URL:** https://discourse.cmake.org/t/creating-cmakelists-txt/9339
**Category:** Usage
**Tags:** os:windows
**Created:** [November 2, 2023, 8:22am UTC](https://discourse.cmake.org/t/creating-cmakelists-txt/9339 "2023-11-02T08:22:30Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![ajo79](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/a/77aa72/32.png) [@ajo79](https://discourse.cmake.org/u/ajo79)
#### Post date: [November 2, 2023, 8:22am UTC](https://discourse.cmake.org/t/creating-cmakelists-txt/9339/1 "2023-11-02T08:22:30Z")

</div>

I want to create creating CMakeLists.txt to create build system for vs2022. which include Qt5, some other sdks and library.

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.cmake.org/u/ben.boeckel)
#### Post date: [November 17, 2023, 1:11pm UTC](https://discourse.cmake.org/t/creating-cmakelists-txt/9339/2 "2023-11-17T13:11:35Z")

</div>

I would recommend starting with [the tutorial](https://cmake.org/cmake/help/latest/guide/tutorial/index.html). You’ll need `find_package(Qt5 COMPONENTS …)` with the list of components depending on your usage (e.g., `Core Network`). The other SDKs and libraries will also likely want `find_package` calls. How to use each package should be documented in the project or module (imported targets would be preferred).
