Warning, /graphics/kst-plot/cmake/modules/KstCrossCompile.cmake is written in an unsupported language. File is not indexed.

0001 # ***************************************************************************
0002 # *                                                                         *
0003 # *   Copyright : (C) 2010 The University of Toronto                        *
0004 # *   email     : netterfield@astro.utoronto.ca                             *
0005 # *                                                                         *
0006 # *   Copyright : (C) 2010 Peter Kümmel                                     *
0007 # *   email     : syntheticpp@gmx.net                                       *
0008 # *                                                                         *
0009 # *   This program is free software; you can redistribute it and/or modify  *
0010 # *   it under the terms of the GNU General Public License as published by  *
0011 # *   the Free Software Foundation; either version 2 of the License, or     *
0012 # *   (at your option) any later version.                                   *
0013 # *                                                                         *
0014 # ***************************************************************************
0015 
0016 set(CMAKE_SYSTEM_NAME Windows)
0017 
0018 # MinGW on Ubuntu: i686-w64-mingw32/x86_64-w64-mingw32 or i586-mingw32msvc
0019 set(TOOLNAME ${kst_cross})
0020 set(TOOLCHAIN "${TOOLNAME}-")
0021 set(CMAKE_C_COMPILER   "${TOOLCHAIN}gcc"     CACHE PATH "Mingw C compiler" FORCE)
0022 set(CMAKE_CXX_COMPILER "${TOOLCHAIN}g++"     CACHE PATH "Mingw C++ compiler" FORCE)
0023 set(CMAKE_RC_COMPILER  "${TOOLCHAIN}windres" CACHE PATH "Mingw rc compiler" FORCE)
0024 
0025 set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
0026 set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
0027 set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
0028