Building using CMake - Windows: Difference between revisions

→‎OSG-stable-Win: Updated to the current Jenkins config, switching to {{collapsible script}}.
(→‎FlightGear-Win-CMake: Updated to the current Jenkins config, switching to {{collapsible script}}.)
(→‎OSG-stable-Win: Updated to the current Jenkins config, switching to {{collapsible script}}.)
Line 190: Line 190:
When using CMake GUI, you can add those entries by clicking the Add entry button. Note that you should omit the -D prefix.
When using CMake GUI, you can add those entries by clicking the Add entry button. Note that you should omit the -D prefix.


=== OSG-stable-Win ===
=== OSG-Win ===
  cmake ..\svn -G "Visual Studio 10"
{{collapsible script
      -DACTUAL_3RDPARTY_DIR:PATH=%WORKSPACE%/3rdParty
| type  = Windows batch file
      -DBUILD_OSG_APPLICATIONS:BOOL=ON
| title  = Reconstructed Jenkins build script (32-bit).
      -DCMAKE_INSTALL_PREFIX:PATH=%WORKSPACE%/install/msvc100/OpenSceneGraph
| lang  = batch
      -DOSG_PLUGIN_SEARCH_INSTALL_DIR_FOR_PLUGINS:BOOL=OFF
| intro = This script has been rebuilt from the output of http://build.flightgear.org:8080/job/OSG-Win/lastBuild/consoleText, with comments added.
      -DFREETYPE_LIBRARY:FILEPATH=%WORKSPACE%/3rdParty/lib/freetype243.lib
| script = REM Set up.
      -DGDAL_INCLUDE_DIR:PATH=
cd %WORKSPACE%
      -DGDAL_LIBRARY:FILEPATH=
md build32
cd build32
del CMakeCache.txt
 
REM Configure.
cmake ..\source ^
-G "Visual Studio 14 2015" ^
-DOSG_USE_QT:BOOL=OFF ^
-DBUILD_OSG_APPLICATIONS:BOOL=ON ^
-DOSG_USE_UTF8_FILENAME:BOOL=ON ^
-DACTUAL_3RDPARTY_DIR:PATH=%WORKSPACE%\3rdParty ^
-DCURL_INCLUDE_DIR:PATH=%WORKSPACE%\3rdParty\include ^
-DTIFF_INCLUDE_DIR:PATH=%WORKSPACE%\3rdParty\include ^
-DTIFF_LIBRARY:FILEPATH=%WORKSPACE%\3rdParty\lib\libtiff.lib ^
-DOSG_PLUGIN_SEARCH_INSTALL_DIR_FOR_PLUGINS:BOOL=OFF ^
-DCURL_LIBRARY:FILEPATH=%WORKSPACE%\3rdParty\lib\libcurl.lib ^
-DFREETYPE_LIBRARY:FILEPATH=%WORKSPACE%\3rdParty\lib\freetype.lib ^
-DCMAKE_INSTALL_PREFIX:PATH=%WORKSPACE%\install\msvc140\OpenSceneGraph ^
-DFREETYPE_INCLUDE_DIR:PATH=%WORKSPACE%\3rdParty\include;%WORKSPACE%\3rdParty\include\freetype
 
REM Compile.
cmake --build . --config Release --target INSTALL
| conc  = The <code>WORKSPACE</code> variable is a Windows environmental variable.
}}
 
{{collapsible script
| type  = Windows batch file
| title  = Reconstructed Jenkins build script (64-bit).
| lang  = batch
| intro  = This script has been rebuilt from the output of http://build.flightgear.org:8080/job/OSG-Win/lastBuild/consoleText, with comments added.
| script = REM Set up.
cd %WORKSPACE%
md build64
cd build64
del CMakeCache.txt
 
REM Configure.
cmake ..\source ^
-G "Visual Studio 14 2015 Win64" ^
-DOSG_USE_QT:BOOL=OFF ^
-DBUILD_OSG_APPLICATIONS:BOOL=ON ^
-DACTUAL_3RDPARTY_DIR:PATH=%WORKSPACE%\3rdParty.x64 ^
-DCURL_INCLUDE_DIR:PATH=%WORKSPACE%\3rdParty.x64/include ^
-DTIFF_INCLUDE_DIR:PATH=%WORKSPACE%\3rdParty.x64/include ^
-DTIFF_LIBRARY:FILEPATH=%WORKSPACE%\3rdParty.x64/lib/libtiff.lib ^
-DOSG_PLUGIN_SEARCH_INSTALL_DIR_FOR_PLUGINS:BOOL=OFF ^
-DCURL_LIBRARY:FILEPATH=%WORKSPACE%\3rdParty.x64/lib/libcurl.lib ^
-DFREETYPE_LIBRARY:FILEPATH=%WORKSPACE%\3rdParty.x64/lib/freetype.lib ^
-DFREETYPE_INCLUDE_DIR:PATH=%WORKSPACE%\3rdParty.x64/include;%WORKSPACE%\3rdParty.x64/include/freetype ^
-DCMAKE_INSTALL_PREFIX:PATH=%WORKSPACE%/install/msvc140-64/OpenSceneGraph
 
REM Compile.
cmake --build . --config Release --target INSTALL
| conc  = The <code>WORKSPACE</code> variable is a Windows environmental variable.
}}
 
=== SimGear-Win ===
=== SimGear-Win ===
{{collapsible script
{{collapsible script