Skip to content
Snippets Groups Projects
Commit e9604caf authored by Carl Philipp Klemm's avatar Carl Philipp Klemm
Browse files

Build windows for win64 platform instead of win32, improve documentation

parent feb89512
Branches
No related tags found
No related merge requests found
......@@ -24,7 +24,18 @@ In a console do:
* mkdir build
* cd build
* cmake ..
* make -j8
* make
* sudo make install
### Cross-compile for windows on UNIX
* Have mingw cross-compile toolchaing installed
* git clone https://git-ce.rwth-aachen.de/carl_philipp.klemm/eisgenerator.git
* cd eisgenerator
* mkdir build
* cd build
* cmake -DCMAKE_TOOLCHAIN_FILE=./crossW64.cmake ..
* make
* sudo make install
## Basic usage of CLI application
......
set(CMAKE_SYSTEM_NAME Windows)
set(CMAKE_C_COMPILER i686-w64-mingw32-gcc)
set(CMAKE_CXX_COMPILER i686-w64-mingw32-g++)
set(CMAKE_FIND_ROOT_PATH /usr/i686-w64-mingw32)
set(CMAKE_C_COMPILER x86_64-w64-mingw32-gcc)
set(CMAKE_CXX_COMPILER x86_64-w64-mingw32-g++)
set(CMAKE_FIND_ROOT_PATH /usr/x86_64-w64-mingw32)
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
set(CMAKE_EXE_LINKER_FLAGS "-static")
set(CMAKE_FIND_LIBRARY_SUFFIXES ".a")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment