- OpenSceneGraph 3.0: Beginner's Guide
- Rui Wang Xuelei Qian
- 257字
- 2021-03-27 00:35:39
Setting up options
There exist three kinds of options:
- Check box: Provide an option list for the user to select. The state can be defined as ON or OFF, each of which may lead to different additional options and building behaviors.
- Search box: Provide an entry panel and a file browser for the user to specify a directory or file. It may also search the path automatically in applicable cases. The result will be used as an include path or dependency of a project.
- Text box: Provide an entry panel, the text value of which may work as a macro definition or compiling flag .
As an OSG beginner, you don't have to learn and configure all of the options immediately. In Chapter 10, Saving and Loading Files, you will have the chance to add third-party dependencies in order to configure some of the OSG plugins, and recompile the whole solution again. However, at present, we will simply have a look at several important options in the following table, and then build your first package from the source code:
Not all options are shown at the beginning. Each time you change the values and click on Configure to update, you may see some more new options being displayed in red. Decide whether you want to modify them or not, and press Configure again, until all of the options turn gray.
The generating process will apply all user options when creating the build files, based on the CMake script files, that is the CMakeLists.txt
file, in each subdirectory.