Windows build instructions - batch file
Hi Philipp,
as discussed I want to share the modified batch commands that I successfully used to build on Windows.
mkdir build-vs
cd build-vs
rm -r *
mkdir install-osi
cmake ^
-G "Visual Studio 16 2019" ^
-DCMAKE_BUILD_TYPE=Debug ^
-DCMAKE_INSTALL_PREFIX=install-osi ^
-DFMU_INSTALL_DIR:PATH=C:/tmp ^
-DCMAKE_GENERATOR_PLATFORM:INTERNAL=x64 ^
-DCMAKE_SHARED_LINKER_FLAGS:STRING=/machine:x64 ^
-DCMAKE_STATIC_LINKER_FLAGS:STRING=/machine:x64 ^
-DCMAKE_EXE_LINKER_FLAGS:STRING=/machine:x64 ^
-DCMAKE_MODULE_LINKER_FLAGS:STRING=/machine:x64 ^
-DProtobuf_INCLUDE_DIR=C:/protobuf-3.15.5/include ^
-DPROTOBUF_PROTOC_EXECUTABLE=C:/protobuf-3.15.5/bin/protoc.exe ^
-DProtobuf_LIBRARY_DEBUG=C:/protobuf-3.15.5/lib/libprotobufd.lib ^
-DProtobuf_LIBRARY_RELEASE=C:/protobuf-3.15.5/lib/libprotobuf.lib ^
-DProtobuf_LITE_LIBRARY_DEBUG=C:/protobuf-3.15.5/lib/libprotobuf-lited.lib ^
-DProtobuf_LITE_LIBRARY_RELEASE=C:/protobuf-3.15.5/lib/libprotobuf-lite.lib ^
-DProtobuf_PROTOC_LIBRARY_DEBUG=C:/protobuf-3.15.5/lib/libprotocd.lib ^
-DProtobuf_PROTOC_LIBRARY_RELEASE=C:/protobuf-3.15.5/lib/libprotoc.lib ^
Best regards,
Simon