CMake system updated

7 views
Skip to first unread message

Paul Martz

unread,
Nov 25, 2010, 11:35:41 AM11/25/10
to osgaudi...@googlegroups.com
(Starting a separate thread for this; Apologies to "th3flyboy" for hijacking the
"osgaudio OpenALpp fails to detect openal headers on linux." thread.)

Hi all -- I've taken Sukender's submission:
http://code.google.com/p/osgaudio/issues/detail?id=7&can=1
and committed it to svn trunk.

The Find*.cmake scripts for Vorbis, Vorbisfile, OGG, and ALUT have all been
updated to conform to current CMake find script standards. Also, we've now
removed our own local/customized Findosg.cmake and FindOpenAL.cmake scripts, and
instead use the CMake stock versions of these scripts. Less code for us to maintain.

I'm going to use Sukender's work as a template for updating the FindFMOD.cmake
script. I'll post again when that's in.

Is anyone plugged into the CMake community enough to get some of these scripts
committed to the CMake distribution? (Vorbis, Vorbisfile, OGG, ALUT, and also
FMOD after I rewrite it.) It'd be nice if we didn't need to maintain these
scripts and instead could contribute them to the CMake project.

--
-Paul Martz Skew Matrix Software
http://www.skew-matrix.com/

Paul Martz

unread,
Nov 25, 2010, 12:19:31 PM11/25/10
to osgaudi...@googlegroups.com
I've just committed an analogous update to the FindFMOD.cmake script. I've set
this up so that the script looks for FMOD_DIR (either as a CMake variable entry,
or as an environment variable) and can find both the include dir and FMOD
library from there.

For example, on my Windows7 box, I add a CMake variable entry FMOD_DIR set to:
C:/Program Files/FMOD SoundSystem/FMOD Programmers API Win32/api
and then finding FMOD happens automatically.

I'd really like to see this change tested on Linux / OSX, so let me know if
there are any issues. Thanks.
-Paul

Reply all
Reply to author
Forward
0 new messages