Find ogre directory with cmake findpackage
-
- Greenskin
- Posts: 104
- Joined: Wed Feb 29, 2012 11:50 am
- x 1
Find ogre directory with cmake findpackage
I want my cmake script to copy all ogre plugins in my build directory. But with find_package i know only how to get binaries not directory of them or something else useful
-
- OGRE Retired Moderator
- Posts: 20570
- Joined: Thu Jan 22, 2004 10:13 am
- Location: Denmark
- x 179
Re: Find ogre directory with cmake findpackage
Code: Select all
if(UNIX)
get_filename_component(OGRE_PLUGIN_DIR_LINUX ${OGRE_Plugin_OctreeSceneManager_LIBRARY_REL} PATH)
set (OGRE_PLUGIN_DIR_LINUX ${OGRE_PLUGIN_DIR_LINUX} CACHE STRING "Ogre plugin dir (release)")
endif(UNIX)
You can probably derive something which solves your problem.

/* Less noise. More signal. */
Ogitor Scenebuilder - powered by Ogre, presented by Qt, fueled by Passion.
OgreAddons - the Ogre code suppository.
Ogitor Scenebuilder - powered by Ogre, presented by Qt, fueled by Passion.
OgreAddons - the Ogre code suppository.
-
- Greenskin
- Posts: 104
- Joined: Wed Feb 29, 2012 11:50 am
- x 1
Re: Find ogre directory with cmake findpackage
Thanks it was useful for me 

-
- Greenskin
- Posts: 104
- Joined: Wed Feb 29, 2012 11:50 am
- x 1
Re: Find ogre directory with cmake findpackage
Is it possible to get directly ogre plugins directory and list of plugins ??
-
- Greenskin
- Posts: 104
- Joined: Wed Feb 29, 2012 11:50 am
- x 1
Re: Find ogre directory with cmake findpackage
I found what i need in FindOGRE.cmake