# Examples of ExternalProject

**URL:** https://discourse.cmake.org/t/examples-of-externalproject/4687
**Category:** Usage
**Created:** [December 16, 2021, 3:45pm UTC](https://discourse.cmake.org/t/examples-of-externalproject/4687 "2021-12-16T15:45:58Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![buildSystemPerson](https://discourse.cmake.org/user_avatar/discourse.cmake.org/buildsystemperson/32/2851_2.png) [@buildSystemPerson](https://discourse.cmake.org/u/buildSystemPerson)
#### Post date: [December 16, 2021, 3:45pm UTC](https://discourse.cmake.org/t/examples-of-externalproject/4687/1 "2021-12-16T15:45:58Z")

</div>

We need to incorporate a project that isn’t fully conducive to add\_subdirectory. This project is intended to be installed and found using find\_package. My understanding is we should use ExternalProject to add the project since the project will be frequently updated (IE we can’t use the stable tags).

Is there any examples I can reference? Am I on the right path?

---

<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: [December 16, 2021, 5:46pm UTC](https://discourse.cmake.org/t/examples-of-externalproject/4687/2 "2021-12-16T17:46:05Z")

</div>

`ExternalProject` doesn’t work all that well with `add_library` in the same project. I would recommend making a project that makes it and then just use `find_package` in the project consuming it (possibly with some pointers passed in through the other build).

---

<div class="post-metadata">

### Author: ![buildSystemPerson](https://discourse.cmake.org/user_avatar/discourse.cmake.org/buildsystemperson/32/2851_2.png) [@buildSystemPerson](https://discourse.cmake.org/u/buildSystemPerson)
#### Post date: [February 1, 2022, 4:19pm UTC](https://discourse.cmake.org/t/examples-of-externalproject/4687/3 "2022-02-01T16:19:49Z")

</div>

Project(s) using ExternalProject:

- [GitHub - pr0g/sdl-bgfx-imgui-starter: A starter project for graphics applications using SDL, bgfx and Dear ImGui](https://github.com/pr0g/sdl-bgfx-imgui-starter)
