2010-12-20 06:06:34 +00:00
|
|
|
|
|
|
|
# This is a CMake toolchain file for ARM:
|
|
|
|
# http://vtk.org/Wiki/CMake_Cross_Compiling
|
|
|
|
|
|
|
|
# usage
|
|
|
|
# cmake -DCMAKE_TOOLCHAIN_FILE=../../toolchain-mingw.cmake ..
|
|
|
|
|
|
|
|
# It is here to assist Dick with verifying compilation of /new stuff with mingw (under linux)
|
|
|
|
|
2011-02-27 05:43:19 +00:00
|
|
|
set( CMAKE_SYSTEM_NAME Windows )
|
2010-12-20 06:06:34 +00:00
|
|
|
|
|
|
|
#-----<configuration>-----------------------------------------------
|
|
|
|
|
|
|
|
# configure only the lines within this <configure> block, typically
|
|
|
|
|
2010-12-28 05:35:57 +00:00
|
|
|
# default is specific to Dick's machine, again for testing only:
|
2011-02-04 02:40:47 +00:00
|
|
|
set( WX_MINGW_BASE /opt/wx2.9-mingw )
|
2010-12-28 05:35:57 +00:00
|
|
|
|
2010-12-20 06:06:34 +00:00
|
|
|
# specify the cross compiler
|
|
|
|
set( CMAKE_C_COMPILER i586-mingw32msvc-gcc )
|
|
|
|
set( CMAKE_CXX_COMPILER i586-mingw32msvc-g++ )
|
|
|
|
|
|
|
|
# where is the target environment
|
|
|
|
set( CMAKE_FIND_ROOT_PATH /usr/i586-mingw32msvc )
|
|
|
|
|
2010-12-28 05:35:57 +00:00
|
|
|
include_directories( ${WX_MINGW_BASE}/include )
|
|
|
|
|
|
|
|
|
2010-12-20 06:06:34 +00:00
|
|
|
|
|
|
|
#-----</configuration>-----------------------------------------------
|
|
|
|
|
|
|
|
# search for programs in the build host directories
|
|
|
|
set( CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER )
|
|
|
|
|
|
|
|
# for libraries and headers in the target directories
|
|
|
|
set( CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY )
|
|
|
|
set( CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY )
|
2010-12-28 05:35:57 +00:00
|
|
|
|
|
|
|
# try and pre-load this variable, or do it later in ccmake
|
2011-02-04 02:40:47 +00:00
|
|
|
set( wxWidgets_CONFIG_EXECUTABLE ${WX_MINGW_BASE}/bin/wx-config )
|