| 1 |
# This file should be included if the command line reads like this: |
| 2 |
# x86_64-w64-mingw32.shared-cmake -DCMAKE_BUILD_TYPE=Release -DMXE=1 .. |
| 3 |
|
| 4 |
message("MXE (M cross environment) https://mxe.cc/") |
| 5 |
message("Please run the configuration like this:") |
| 6 |
message("x86_64-w64-mingw32.shared-cmake -DMXE=1 -G \"Unix Makefiles\" -DCMAKE_BUILD_TYPE=Release ../../development") |
| 7 |
|
| 8 |
set(HOME_DEVEL_DIR "/home/rusconi/devel") |
| 9 |
|
| 10 |
set(MXE_ROOT_DIR "${HOME_DEVEL_DIR}/mxe") |
| 11 |
set(MXE_SHIPPED_DLLS_DIR "${MXE_ROOT_DIR}/dll-set-for-packages") |
| 12 |
|
| 13 |
set(CMAKE_C_IMPLICIT_INCLUDE_DIRECTORIES ${HOME_DEVEL_DIR}/mxe/usr/x86_64-w64-mingw32.shared/include) |
| 14 |
set(CMAKE_CXX_IMPLICIT_INCLUDE_DIRECTORIES ${HOME_DEVEL_DIR}/mxe/usr/x86_64-w64-mingw32.shared/include) |
| 15 |
|
| 16 |
if(WIN32 OR _WIN32) |
| 17 |
message(STATUS "Building with WIN32 defined.") |
| 18 |
endif() |
| 19 |
|
| 20 |
## We can build the package setup executable with this specific command. |
| 21 |
add_custom_target( |
| 22 |
dllinstall |
| 23 |
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_BINARY_DIR}/IsoSpec++/libIsoSpec++.dll ${MXE_SHIPPED_DLLS_DIR} |
| 24 |
COMMENT "Build and copy the dll file to its MXE destination." |
| 25 |
DEPENDS ${CMAKE_BINARY_DIR}/IsoSpec++/libIsoSpec++.dll |
| 26 |
VERBATIM |
| 27 |
) |