# hide target from file-api

**URL:** https://discourse.cmake.org/t/hide-target-from-file-api/13800
**Category:** Usage
**Created:** [March 23, 2025, 11:40am UTC](https://discourse.cmake.org/t/hide-target-from-file-api/13800 "2025-03-23T11:40:42Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![KSergeyP](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/k/8baadc/32.png) [@KSergeyP](https://discourse.cmake.org/u/KSergeyP)
#### Post date: [March 23, 2025, 11:40am UTC](https://discourse.cmake.org/t/hide-target-from-file-api/13800/1 "2025-03-23T11:40:42Z")

</div>

VSCode lists all targets as a flat list. I don’t need to see GoogleTests targets for example. How can I specify in the Cmake script that the target should not be displayed in file-api?

---

<div class="post-metadata">

### Author: ![LegalizeAdulthood](https://discourse.cmake.org/user_avatar/discourse.cmake.org/legalizeadulthood/32/5282_2.png) [@LegalizeAdulthood](https://discourse.cmake.org/u/LegalizeAdulthood)
#### Post date: [March 24, 2025, 7:47pm UTC](https://discourse.cmake.org/t/hide-target-from-file-api/13800/2 "2025-03-24T19:47:02Z")

</div>

If you consume google test through vcpkg, this won’t happen.
