You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
1.2 KiB

  1. # This is a CMake toolchain file for ARM:
  2. # http://vtk.org/Wiki/CMake_Cross_Compiling
  3. # usage
  4. # cmake -DCMAKE_TOOLCHAIN_FILE=../../toolchain-mingw.cmake ..
  5. # It is here to assist Dick with verifying compilation of /new stuff with mingw (under linux)
  6. set( CMAKE_SYSTEM_NAME Windows )
  7. #-----<configuration>-----------------------------------------------
  8. # configure only the lines within this <configure> block, typically
  9. # default is specific to Dick's machine, again for testing only:
  10. set( WX_MINGW_BASE /opt/wx2.9-mingw )
  11. # specify the cross compiler
  12. set( CMAKE_C_COMPILER i586-mingw32msvc-gcc )
  13. set( CMAKE_CXX_COMPILER i586-mingw32msvc-g++ )
  14. # where is the target environment
  15. set( CMAKE_FIND_ROOT_PATH /usr/i586-mingw32msvc )
  16. include_directories( ${WX_MINGW_BASE}/include )
  17. #-----</configuration>-----------------------------------------------
  18. # search for programs in the build host directories
  19. set( CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER )
  20. # for libraries and headers in the target directories
  21. set( CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY )
  22. set( CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY )
  23. # try and pre-load this variable, or do it later in ccmake
  24. set( wxWidgets_CONFIG_EXECUTABLE ${WX_MINGW_BASE}/bin/wx-config )