# How to add \*.dll or \*.lib into project C++ for Cmake of visual studio IDE ?

**URL:** https://discourse.cmake.org/t/how-to-add-dll-or-lib-into-project-c-for-cmake-of-visual-studio-ide/654
**Category:** Code
**Tags:** os:windows
**Created:** [February 19, 2020, 3:02am UTC](https://discourse.cmake.org/t/how-to-add-dll-or-lib-into-project-c-for-cmake-of-visual-studio-ide/654 "2020-02-19T03:02:30Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Dung\_Le\_Quang](https://discourse.cmake.org/user_avatar/discourse.cmake.org/dung_le_quang/32/127_2.png) [@Dung\_Le\_Quang](https://discourse.cmake.org/u/Dung_Le_Quang)
#### Post date: [February 19, 2020, 3:02am UTC](https://discourse.cmake.org/t/how-to-add-dll-or-lib-into-project-c-for-cmake-of-visual-studio-ide/654/1 "2020-02-19T03:02:30Z")

</div>

![image](https://discourse.cmake.org/uploads/default/original/1X/6e4000e8a32fb0cf7e8e1a61641fbb26e2c0c53f.png)

---

<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: [February 19, 2020, 12:46pm UTC](https://discourse.cmake.org/t/how-to-add-dll-or-lib-into-project-c-for-cmake-of-visual-studio-ide/654/2 "2020-02-19T12:46:24Z")

</div>

It appears you’re asking about `#import`? I don’t know much about that extension or what kind of support CMake offers to aid with it. @brad.king?

---

<div class="post-metadata">

### Author: ![brad.king](https://discourse.cmake.org/user_avatar/discourse.cmake.org/brad.king/32/11_2.png) [@brad.king](https://discourse.cmake.org/u/brad.king)
#### Post date: [February 24, 2020, 2:11pm UTC](https://discourse.cmake.org/t/how-to-add-dll-or-lib-into-project-c-for-cmake-of-visual-studio-ide/654/3 "2020-02-24T14:11:35Z")

</div>

I’m not particularly familiar with `#import`.

@Dung_Le_Quang if you add the needed files to the project by hand in the IDE and save, what content is added to the `.vcxproj` file?
