842
edits
Legoboyvdlp (talk | contribs) |
Legoboyvdlp (talk | contribs) |
||
Line 77: | Line 77: | ||
### Set the <tt>CMAKE_INSTALL_PREFIX</tt> variable to <tt>\install\Simgear</tt> | ### Set the <tt>CMAKE_INSTALL_PREFIX</tt> variable to <tt>\install\Simgear</tt> | ||
### Set the <tt>Boost_INCLUDE_DIR</tt> variable to <tt>\Dependencies</tt> | ### Set the <tt>Boost_INCLUDE_DIR</tt> variable to <tt>\Dependencies</tt> | ||
### To pick up Boost correctly, you must add a new Cache entry with name <tt>BOOST_ROOT</tt>, type <tt>PATH</tt>, and value <tt>\Dependencies</tt>. It is '''not''' required to set Boost_DIR to any value. | ### To pick up Boost correctly, you must add a new Cache entry with name <tt>BOOST_ROOT</tt>, type <tt>PATH</tt>, and value <tt>\Dependencies</tt>. It is '''not''' required to set Boost_DIR to any value.[[File:BuildSettingBoost.png|thumb|Demonstrates how to add Boost in CMAKE GUI]] | ||
### Create a second cache entry, called <tt>CMAKE_PREFIX_PATH</tt>, type <tt>PATH</tt> and value <tt>\Dependencies\install\msvc140-64\OpenSceneGraph</tt>. This will allow OSG to be picked up automatically. | ### Create a second cache entry, called <tt>CMAKE_PREFIX_PATH</tt>, type <tt>PATH</tt> and value <tt>\Dependencies\install\msvc140-64\OpenSceneGraph</tt>. This will allow OSG to be picked up automatically. | ||
### Also verify the lines with a checkbox. These are build options and may impact the feature set of the built program. | ### Also verify the lines with a checkbox. These are build options and may impact the feature set of the built program. | ||
Line 83: | Line 83: | ||
## Repeat the process from step 5, until [[File:CMake GUI Generate.png]] is enabled. | ## Repeat the process from step 5, until [[File:CMake GUI Generate.png]] is enabled. | ||
## Press [[File:CMake GUI Generate.png]]. | ## Press [[File:CMake GUI Generate.png]]. | ||
## Press [[File:CMake GUI | ## Press [[File:CMake GUI OpenProject.png]]. | ||
## Choose the <tt>"RelWithDebInfo"</tt> build in the toolbar. The right menu should read x64 for 64-bits. [[File:MVSC 2019 solution.png|right]] | ## Choose the <tt>"RelWithDebInfo"</tt> build in the toolbar. The right menu should read x64 for 64-bits. [[File:MVSC 2019 solution.png|right]] | ||
## Generate the solution with F7 key or right-click the top level "Solution SimGear" in the Solution Explorer and choose Build. It should take ~20 minutes on average hardware. | ## Generate the solution with F7 key or right-click the top level "Solution SimGear" in the Solution Explorer and choose Build. It should take ~20 minutes on average hardware. |
edits