[osg-users] What is the SETUP_* in CMakeList.txt
Robert Osfield
robert.osfield at gmail.com
Fri Jan 5 00:20:44 PST 2018
Hi Jieqian.Li,
On 5 January 2018 at 02:50, gabriella seth <ljq1000 at hotmail.com> wrote:
> What are the SETUP_LIBRARY, SETUP_APPLICATION, SETUP_PLUGIN and so on, and
> where defined them?
These are just convenience cmake functions for setting up OSG
libraries, application and plugins. These cmake functions only exist
because the OSG has hundreds of separate submodules & examples so it
makes sense to make it easier to set up the libs + applications with
same settings each time. They are defined in
OpenSceneGraph/CMakeModules/OsgMacroUtils.cmake.
When writing you own applications you wouldn't use these but roll your
own CMake scripts, the OpenSceneGraph/examples/CMakeExample provides a
bare bones CMakeLists.txt that illustrates how to create your own
build using CMake + OSG.
Robert.
More information about the osg-users
mailing list