Generate makefile for building CarlaLib
This commit is contained in:
parent
b8d20e40f8
commit
e414143833
|
@ -1,4 +1,4 @@
|
|||
@echo %FILE_N% off
|
||||
@echo off
|
||||
|
||||
setlocal
|
||||
|
||||
|
@ -23,6 +23,10 @@ set INSTALLATION_DIR=%LOCAL_PATH%..\..\Build\
|
|||
set VERSION_FILE=%LOCAL_PATH%..\ContentVersions.txt
|
||||
set CONTENT_DIR=%LOCAL_PATH%..\..\Unreal\CarlaUE4\Content
|
||||
|
||||
pushd %INSTALLATION_DIR%
|
||||
set INSTALLATION_DIR=%CD%\
|
||||
popd
|
||||
|
||||
set TOOLSET=msvc-14.1
|
||||
set NUMBER_OF_ASYNC_JOBS=%NUMBER_OF_PROCESSORS%
|
||||
|
||||
|
@ -134,7 +138,31 @@ rem ============================================================================
|
|||
rem -- Generate CMake ----------------------------------------------------------
|
||||
rem ============================================================================
|
||||
|
||||
for /f %%i in ('git describe --tags --dirty --always') do set carla_version=%%i
|
||||
|
||||
>%INSTALLATION_DIR%CMakeLists.txt.in echo # Automatically generated by Setup.sh
|
||||
>>%INSTALLATION_DIR%CMakeLists.txt.in echo set(CARLA_VERSION %carla_version%)
|
||||
>>%INSTALLATION_DIR%CMakeLists.txt.in echo.
|
||||
>>%INSTALLATION_DIR%CMakeLists.txt.in echo if (WIN32)
|
||||
>>%INSTALLATION_DIR%CMakeLists.txt.in echo add_definitions(-D_WIN32_WINNT=0x0501)
|
||||
>>%INSTALLATION_DIR%CMakeLists.txt.in echo STRING (REGEX REPLACE "/RTC(su|[1su])" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
|
||||
>>%INSTALLATION_DIR%CMakeLists.txt.in echo endif()
|
||||
>>%INSTALLATION_DIR%CMakeLists.txt.in echo.
|
||||
>>%INSTALLATION_DIR%CMakeLists.txt.in echo add_definitions(-DBOOST_ERROR_CODE_HEADER_ONLY)
|
||||
>>%INSTALLATION_DIR%CMakeLists.txt.in echo.
|
||||
>>%INSTALLATION_DIR%CMakeLists.txt.in echo set(BOOST_INCLUDE_PATH %INSTALLATION_DIR%boost-install/include)
|
||||
>>%INSTALLATION_DIR%CMakeLists.txt.in echo set(BOOST_LIBRARY_PATH %INSTALLATION_DIR%boost-install/lib)
|
||||
>>%INSTALLATION_DIR%CMakeLists.txt.in echo.
|
||||
>>%INSTALLATION_DIR%CMakeLists.txt.in echo set(RPCLIB_INCLUDE_PATH %INSTALLATION_DIR%rpclib-install/include)
|
||||
>>%INSTALLATION_DIR%CMakeLists.txt.in echo set(RPCLIB_LIB_PATH %INSTALLATION_DIR%rpclib-install/lib/release)
|
||||
>>%INSTALLATION_DIR%CMakeLists.txt.in echo.
|
||||
>>%INSTALLATION_DIR%CMakeLists.txt.in echo if (CMAKE_BUILD_TYPE STREQUAL "Server")
|
||||
>>%INSTALLATION_DIR%CMakeLists.txt.in echo # Here libraries linking libc++.
|
||||
>>%INSTALLATION_DIR%CMakeLists.txt.in echo set(GTEST_INCLUDE_PATH %INSTALLATION_DIR%gtest-install/include)
|
||||
>>%INSTALLATION_DIR%CMakeLists.txt.in echo set(GTEST_LIB_PATH %INSTALLATION_DIR%gtest-install/lib/release)
|
||||
>>%INSTALLATION_DIR%CMakeLists.txt.in echo elseif (CMAKE_BUILD_TYPE STREQUAL "Client")
|
||||
>>%INSTALLATION_DIR%CMakeLists.txt.in echo # Here libraries linking libstdc++.
|
||||
>>%INSTALLATION_DIR%CMakeLists.txt.in echo endif ()
|
||||
|
||||
goto success
|
||||
|
||||
|
|
Loading…
Reference in New Issue