diff --git a/CMakeLists.txt b/CMakeLists.txt index 2cbcadc..a517139 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -78,7 +78,7 @@ elseif(MSVC) # for compatability with MSVC directory layout set(OSG_INSTALL_PREFIX ${CMAKE_BINARY_DIR}/install/${OSG_MSVC}/OpenSceneGraph) SET(OSG_SOURCE URL http://www.openscenegraph.org/downloads/developer_releases/OpenSceneGraph-3.1.4.zip) - + list(APPEND OSG_DEPS WinDeps) else() # normal OSG @@ -97,7 +97,16 @@ if (MSVC) INSTALL_COMMAND "" ) - + ExternalProject_Add(Boost + DOWNLOAD_COMMAND URL http://flightgear.simpits.org:8080/job/Boost-Win/lastSuccessfulBuild/artifact/Boost/boost/*zip*/boost.zip + SOURCE_DIR ${CMAKE_BINARY_DIR}/Boost/boost + CONFIGURE_COMMAND "" + BUILD_COMMAND "" + INSTALL_COMMAND "" + ) + + list(APPEND SG_DEPS Boost) + list(APPEND SG_CMAKE_ARGS -DBOOST_ROOT=${CMAKE_BINARY_DIR}) list(APPEND FG_CMAKE_ARGS -DBOOST_ROOT=${CMAKE_BINARY_DIR}) endif(MSVC) # of Windows @@ -160,4 +169,5 @@ ExternalProject_Add(FlightGear UPDATE_COMMAND "" # or update. SOURCE_DIR ${CMAKE_CURRENT_LIST_DIR}/flightgear BINARY_DIR fgbuild - CMAKE_ARGS ${FG_CMAKE_ARGS} -DCMAKE_INSTALL_PREFIX=${CMAKE_INSTALL_PREFIX} ) + CMAKE_ARGS ${FG_CMAKE_ARGS} -DCMAKE_INSTALL_PREFIX=${CMAKE_INSTALL_PREFIX} + ) diff --git a/installWinDeps.bat b/installWinDeps.bat index 945562d..6926b48 100644 --- a/installWinDeps.bat +++ b/installWinDeps.bat @@ -6,6 +6,7 @@ REM using this bat file. echo %CD% -xcopy /Y /E winDeps . +md 3rdParty +xcopy /Y /E winDeps/3rdParty 3rdParty echo "Done copying Windows deps"