# Avogadro Extensions in general

**URL:** <https://discuss.avogadro.cc/t/avogadro-extensions-in-general/194>\
**Category:** General Discussion\
**Created:** [July 18, 2011, 3:40pm UTC](https://discuss.avogadro.cc/t/avogadro-extensions-in-general/194 "2011-07-18T15:40:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Charles\_Korb](https://discuss.avogadro.cc/letter_avatar_proxy/v4/letter/c/85e7bf/32.png) [@Charles\_Korb](https://discuss.avogadro.cc/u/Charles_Korb)\
**Post date:** [July 18, 2011, 3:40pm UTC](https://discuss.avogadro.cc/t/avogadro-extensions-in-general/194/1 "2011-07-18T15:40:19Z")

</div>

Hello all,

I am running linux and I was trying to learn more about building Avogadro extensions as a precursor to actually making one myself. I found a few tutorials on the avogadro site ( [http://avogadro.openmolecules.net/api/dev/tpe-toc.html](http://avogadro.openmolecules.net/api/dev/tpe-toc.html) ) and I found the actual files on github ( [https://github.com/cryos/avogadro/tree/master/libavogadro/examples/thirdPartyExtensions](https://github.com/cryos/avogadro/tree/master/libavogadro/examples/thirdPartyExtensions) ). However, I cannot get the files to work using cmake. Using the CMakeLists.txt found on the github, I got this error:

CMake Error at CMakeLists.txt:17 (include):

include called with wrong number of arguments. Include only takes one

file.

CMake Error at CMakeLists.txt:37 (avogadro\_plugin):

Unknown CMake command “avogadro\_plugin”.

I assumed this had to do with not being able to find the Avogadro libraries so I wrote a findAvogadro.cmake file and then when that didn’t work I copied the findAvogadro file from a normal avogadro download which still didn’t work. Do you guys have any ideas or tips?

Thank you very much,

Charles Korb

---

<div class="post-metadata">

**Author:** ![ghutchis](https://discuss.avogadro.cc/user_avatar/discuss.avogadro.cc/ghutchis/32/456_2.png) [@ghutchis](https://discuss.avogadro.cc/u/ghutchis)\
**Post date:** [July 18, 2011, 4:51pm UTC](https://discuss.avogadro.cc/t/avogadro-extensions-in-general/194/2 "2011-07-18T16:51:24Z")

</div>

On Jul 18, 2011, at 11:40 AM, Charles Korb wrote:

> Hello all,  
> I am running linux and I was trying to learn more about building Avogadro extensions as a precursor to actually making one myself. I found a few tutorials on the avogadro site ( [Avogadro: Developing Third Party Extensions](http://avogadro.openmolecules.net/api/dev/tpe-toc.html) ) and I found the actual files on github ( [avogadro/libavogadro/examples/thirdPartyExtensions at master · cryos/avogadro · GitHub](https://github.com/cryos/avogadro/tree/master/libavogadro/examples/thirdPartyExtensions) ). However, I cannot get the files to work using cmake.

Well, my first question would be what version of Cmake you have installed. But I think the main issue is whether you’ve actually _installed_ Avogadro. Running “make install” for Avogadro should install the findAvogadro.cmake module for Cmake to find.

Hope that helps,  
-Geoff

---

<div class="post-metadata">

**Author:** ![allison.vacanti](https://discuss.avogadro.cc/user_avatar/discuss.avogadro.cc/allison.vacanti/32/112_2.png) [@allison.vacanti](https://discuss.avogadro.cc/u/allison.vacanti)\
**Post date:** [July 18, 2011, 4:51pm UTC](https://discuss.avogadro.cc/t/avogadro-extensions-in-general/194/3 "2011-07-18T16:51:57Z")

</div>

Hi Charles,

Have you installed avogadro on this system yet? Avogadro should  
install a file, AvogadroUse.cmake, that defines some CMake functions  
(like avogadro\_plugin). On my system it installs to  
/usr/lib/avogadro/1\_1/AvogadroUse.cmake – make sure that this file is  
on your system and is somewhere that CMake can find it.

Dave

On Mon, Jul 18, 2011 at 11:40 AM, Charles Korb [ckorb@mix.wvu.edu](mailto:ckorb@mix.wvu.edu) wrote:

> Hello all,  
> I am running linux and I was trying to learn more about building Avogadro  
> extensions as a precursor to actually making one myself. I found a few  
> tutorials on the avogadro site (  
> [Avogadro: Developing Third Party Extensions](http://avogadro.openmolecules.net/api/dev/tpe-toc.html) ) and I found the  
> actual files on github (  
> [avogadro/libavogadro/examples/thirdPartyExtensions at master · cryos/avogadro · GitHub](https://github.com/cryos/avogadro/tree/master/libavogadro/examples/thirdPartyExtensions)  
> ). However, I cannot get the files to work using cmake. Using the  
> CMakeLists.txt found on the github, I got this error:  
> CMake Error at CMakeLists.txt:17 (include):  
> include called with wrong number of arguments. Include only takes one  
> file.  
> CMake Error at CMakeLists.txt:37 (avogadro\_plugin):  
> Unknown CMake command “avogadro\_plugin”.
> 
> I assumed this had to do with not being able to find the Avogadro libraries  
> so I wrote a findAvogadro.cmake file and then when that didn’t work I copied  
> the findAvogadro file from a normal avogadro download which still didn’t  
> work. Do you guys have any ideas or tips?  
> Thank you very much,  
> Charles Korb
> 
> * * *
> 
> AppSumo Presents a FREE Video for the SourceForge Community by Eric  
> Ries, the creator of the Lean Startup Methodology on “Lean Startup  
> Secrets Revealed.” This video shows you how to validate your ideas,  
> optimize your ideas and identify your business strategy.  
> [http://p.sf.net/sfu/appsumosfdev2dev](http://p.sf.net/sfu/appsumosfdev2dev)
> 
> * * *
> 
> Avogadro-Discuss mailing list  
> [Avogadro-Discuss@lists.sourceforge.net](mailto:Avogadro-Discuss@lists.sourceforge.net)  
> [avogadro-discuss List Signup and Options](https://lists.sourceforge.net/lists/listinfo/avogadro-discuss)
