# How to use the head file in my CPP project under WSL?

**URL:** <https://openfhe.discourse.group/t/how-to-use-the-head-file-in-my-cpp-project-under-wsl/191>\
**Category:** Library Questions\
**Created:** [November 1, 2022, 2:21pm UTC](https://openfhe.discourse.group/t/how-to-use-the-head-file-in-my-cpp-project-under-wsl/191 "2022-11-01T14:21:44Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![dsuponitskiy-duality](https://avatars.discourse-cdn.com/v4/letter/d/c68b51/32.png) [@dsuponitskiy-duality](https://openfhe.discourse.group/u/dsuponitskiy-duality)\
**Post date:** [November 2, 2022, 3:14pm UTC](https://openfhe.discourse.group/t/how-to-use-the-head-file-in-my-cpp-project-under-wsl/191/2 "2022-11-02T15:14:34Z")

</div>

By default, the library gets installed in /usr/local and openfhe.h will be in /usr/local/include/openfhe/pke/. So, please check if it is there. If it is not, then rerun “make install”. Most likely you would need the admin rights to install OpenFHE.  
For your own example:

1. make a new directory where you keep your own “lance\_project.cpp” file.
2. copy CMakeLists.User.txt from openfhe-development/ to the new directory and rename it to CMakeLists.txt
3. Open CMakeLists.txt for editing and add a new line as it is suggested in the comments in the very end of CMakeLists.txt. Something like this:  
add\_executable( test lance\_project.cpp)
4. make a new directory build and “cd build”
5. and after that the procedure is very similar to building and running examples in OpenFHE:

- cmake …
- make
- and, finally, run ./lance\_project  
Good luck!

---

_[View the full topic](https://openfhe.discourse.group/t/how-to-use-the-head-file-in-my-cpp-project-under-wsl/191)._
