# CMake Error: The source directory does not appear to contain CMakeLists.txt.

**URL:** https://discourse.cmake.org/t/cmake-error-the-source-directory-does-not-appear-to-contain-cmakelists-txt/7581
**Category:** Usage
**Tags:** os:windows
**Created:** [March 2, 2023, 2:36am UTC](https://discourse.cmake.org/t/cmake-error-the-source-directory-does-not-appear-to-contain-cmakelists-txt/7581 "2023-03-02T02:36:00Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![CNCG](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/c/3da27b/32.png) [@CNCG](https://discourse.cmake.org/u/CNCG)
#### Post date: [March 2, 2023, 2:36am UTC](https://discourse.cmake.org/t/cmake-error-the-source-directory-does-not-appear-to-contain-cmakelists-txt/7581/1 "2023-03-02T02:36:00Z")

</div>

CMake Error: The source directory “C:/Development/wsbuild64” does not appear to contain CMakeLists.txt.

---

<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: [March 2, 2023, 3:26am UTC](https://discourse.cmake.org/t/cmake-error-the-source-directory-does-not-appear-to-contain-cmakelists-txt/7581/2 "2023-03-02T03:26:18Z")

</div>

How did you try to run CMake?

---

<div class="post-metadata">

### Author: ![CNCG](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/c/3da27b/32.png) [@CNCG](https://discourse.cmake.org/u/CNCG)
#### Post date: [March 2, 2023, 3:35am UTC](https://discourse.cmake.org/t/cmake-error-the-source-directory-does-not-appear-to-contain-cmakelists-txt/7581/3 "2023-03-02T03:35:34Z")

</div>

I want to build an enviroment about wireshark compile, I follow the official document untill the last step,see as the fig. but errors occured

 ![image](https://discourse.cmake.org/uploads/default/original/2X/3/33313464b48ba191b003b564bd59e59c2a37ba62.png)

the error af follow:  
CMake Error at CMakeLists.txt:1235 (find\_package):  
By not providing “FindQt5Core.cmake” in CMAKE\_MODULE\_PATH this project has  
asked CMake to find a package configuration file provided by “Qt5Core”, but  
CMake did not find one.

Could not find a package configuration file provided by “Qt5Core” with any  
of the following names:

```
Qt5CoreConfig.cmake
qt5core-config.cmake

```

Add the installation prefix of “Qt5Core” to CMAKE\_PREFIX\_PATH or set  
“Qt5Core\_DIR” to a directory containing one of the above files. If  
“Qt5Core” provides a separate development package or SDK, be sure it has  
been installed.

– Configuring incomplete, errors occurred!

THANKS A LOT!

---

<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: [March 2, 2023, 5:11am UTC](https://discourse.cmake.org/t/cmake-error-the-source-directory-does-not-appear-to-contain-cmakelists-txt/7581/4 "2023-03-02T05:11:44Z")

</div>

You’ll need to get Qt5 for Windows. Qt has an installer you can use for that, but there are also other ways such as `vcpkg` and the like.

---

<div class="post-metadata">

### Author: ![CNCG](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/c/3da27b/32.png) [@CNCG](https://discourse.cmake.org/u/CNCG)
#### Post date: [March 2, 2023, 5:55am UTC](https://discourse.cmake.org/t/cmake-error-the-source-directory-does-not-appear-to-contain-cmakelists-txt/7581/5 "2023-03-02T05:55:21Z")

</div>

![image](https://discourse.cmake.org/uploads/default/original/2X/6/689fceba69a14adc37db4fb53dae335523d5370e.png)  
I’ ve already got qt5, but it still error.

---

<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: [March 4, 2023, 6:23pm UTC](https://discourse.cmake.org/t/cmake-error-the-source-directory-does-not-appear-to-contain-cmakelists-txt/7581/6 "2023-03-04T18:23:41Z")

</div>

Did you tell CMake where to find this Qt5 you have? You’ll need to set something like `Qt5_DIR` to `…/Qt5.9.5/…/cmake/Qt5`. I can’t remember the bit under the directory you have there that needs to be used, but the stem is `cmake/Qt5` at least.
