# Include an OOT module in another OOT module?

**URL:** <https://www.ruby-forum.com/t/include-an-oot-module-in-another-oot-module/242494>\
**Category:** GNU Radio\
**Created:** [June 28, 2015, 12:28am UTC](https://www.ruby-forum.com/t/include-an-oot-module-in-another-oot-module/242494 "2015-06-28T00:28:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Detlef\_R](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/58f4c7/32.png) [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Post date:** [June 28, 2015, 12:28am UTC](https://www.ruby-forum.com/t/include-an-oot-module-in-another-oot-module/242494/1 "2015-06-28T00:28:33Z")

</div>

Let’s say I’ve made two OOT projects called gr-first and gr-second. I  
want to link gr-second against gr-first, but CMake isn’t finding it.

gr-first/CMakeLists.txt seems to install a helper file:  
$PREFIX/lib/cmake/first/firstConfig.cmake

In gr-second/CMakeLists.txt, I add a line:

find\_package(first)

But this does not work. I also tried

include(firstConfig)

find\_package(first)

I guess I can hack something together using an example like gr-osmosdr,  
which depends on gr-iqbalance. Although if possible, I’d like to use the  
default helper file and get that working, since that’s the whole point  
of having a helper file. Any hints?

Thanks,

Sean

---

<div class="post-metadata">

**Author:** ![NowlanS\_Sean](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/f05b48/32.png) [@NowlanS\_Sean](https://www.ruby-forum.com/u/NowlanS_Sean)\
**Post date:** [June 28, 2015, 12:54am UTC](https://www.ruby-forum.com/t/include-an-oot-module-in-another-oot-module/242494/2 "2015-06-28T00:54:15Z")

</div>

?Strange. It is now working for me, and I don’t know what I did to break  
or fix it.

Sean

* * *

From: discuss-gnuradio-bounces+sean.nowlan=removed\_email\_address@domain.invalid  
[discuss-gnuradio-bounces+sean.nowlan=removed\_email\_address@domain.invalid](mailto:discuss-gnuradio-bounces+sean.nowlan=removed_email_address@domain.invalid) on behalf  
of Nowlan, Sean [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
Sent: Saturday, June 27, 2015 6:27 PM  
To: removed\_email\_address@domain.invalid  
Subject: [Discuss-gnuradio] Include an OOT module in another OOT module?

Let’s say I’ve made two OOT projects called gr-first and gr-second. I  
want to link gr-second against gr-first, but CMake isn’t finding it.

gr-first/CMakeLists.txt seems to install a helper file:  
$PREFIX/lib/cmake/first/firstConfig.cmake

In gr-second/CMakeLists.txt, I add a line:

find\_package(first)

But this does not work. I also tried

include(firstConfig)

find\_package(first)

I guess I can hack something together using an example like gr-osmosdr,  
which depends on gr-iqbalance. Although if possible, I’d like to use the  
default helper file and get that working, since that’s the whole point  
of having a helper file. Any hints?

Thanks,

Sean
