Building libzip and zlib on Windows for XTrackCAD
cd zlibsourcedir
mkdir build
mkdir install
cd build
set CMAKE_INSTALL_PREFIX=<zlibsourcedir>\install
cmake ..
cmake --build . -t zlibstatic
cmake --install . --config Debug
- For release configuration use
cmake --build . -t zlibstatic --config Release
cmake --install . --config Release
- Copy the contents of the install directory to
xtcextern\<architecture>\zlib
- Building libzip in the same command line as used above
cd libzipsourcedir
mkdir build
cd build
cmake .. -D BUILD_SHARED_LIBS=OFF
cmake --build . --config Debug
- Copy the contents of the install directory to
xtcextern\<architecture>\libzip