# What's the best method to retrieve include files from Git ?

**URL:** <https://discourse.cmake.org/t/whats-the-best-method-to-retrieve-include-files-from-git/12973>\
**Category:** Code\
**Created:** [November 15, 2024, 3:12pm UTC](https://discourse.cmake.org/t/whats-the-best-method-to-retrieve-include-files-from-git/12973 "2024-11-15T15:12:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Oodini](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/o/db5fbb/32.png) [@Oodini](https://discourse.cmake.org/u/Oodini)\
**Post date:** [November 15, 2024, 3:12pm UTC](https://discourse.cmake.org/t/whats-the-best-method-to-retrieve-include-files-from-git/12973/1 "2024-11-15T15:12:51Z")

</div>

Hello,

I have a Git repository where there are two directories. The first one contain only .h file.  
I have two needs (especially the first one):

- I want to download them in comsusing projects. `ExternalProject_Add()` ? `FetchContent_Declare()/FetchContent_Make_Avalaible()` ? `file(DOWNLOAD ...)` ?  
I guess it should be `ExternalProject_Add()` for the second one, but maybe and other function for the first one.

- The first directory is supposed to be consumed by C project, and the second one by C++ projects. Would it be possible to download only one of them according the consuming project’s language ?
