# Running CTests from Child Projects in Parent Project

**URL:** https://discourse.cmake.org/t/running-ctests-from-child-projects-in-parent-project/10434
**Category:** Usage
**Created:** [March 21, 2024, 4:05pm UTC](https://discourse.cmake.org/t/running-ctests-from-child-projects-in-parent-project/10434 "2024-03-21T16:05:41Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![ChadK](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/c/9e8a1a/32.png) [@ChadK](https://discourse.cmake.org/u/ChadK)
#### Post date: [March 21, 2024, 4:05pm UTC](https://discourse.cmake.org/t/running-ctests-from-child-projects-in-parent-project/10434/1 "2024-03-21T16:05:41Z")

</div>

I have an embedded (ARM Cortex-M) project where I am creating separate projects to compile some of the code for unit testing on a PC (Windows or Linux). I have the child projects (and CTests) working just fine on their own, but I’d like a way to tie their tests into the main embedded project so that other developers don’t have to know that the child projects exist. Thanks in advance!

---

<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: [April 10, 2024, 11:49pm UTC](https://discourse.cmake.org/t/running-ctests-from-child-projects-in-parent-project/10434/2 "2024-04-10T23:49:23Z")

</div>

Could you provide some more context? It’s not clear whether child projects `find_package(parent)` or vice versa. And what do you mean by “tie their tests into the main executable”?
