官术网_书友最值得收藏!

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.

主站蜘蛛池模板: 静宁县| 乌兰浩特市| 秭归县| 凤凰县| 萨迦县| 新邵县| 灵武市| 嘉定区| 绥芬河市| 上思县| 天津市| 濉溪县| 博爱县| 墨脱县| 阳原县| 赤水市| 侯马市| 高尔夫| 扎兰屯市| 平泉县| 宁陕县| 昔阳县| 海晏县| 寿光市| 梁山县| 达拉特旗| 广宗县| 扎赉特旗| 云和县| 章丘市| 扶绥县| 南木林县| 久治县| 天峨县| 静海县| 淮北市| 沂水县| 杭锦后旗| 台州市| 柳河县| 玉田县|