diff options
author | Yaakov Selkowitz <yselkowi@redhat.com> | 2015-06-10 21:05:09 -0500 |
---|---|---|
committer | Yaakov Selkowitz <yselkowi@redhat.com> | 2015-06-10 22:01:33 -0500 |
commit | e51c76a24d3b1f8128133393d036a2c5401f9720 (patch) | |
tree | bfaa2d9d27ff6c5214f7046bfb9fd4cd0e3356aa /toolchain-cygwin32.cmake | |
parent | d2bf9b8827eda5b57341c8a2013314b822b09671 (diff) | |
download | cygwin-filesystem-e51c76a24d3b1f8128133393d036a2c5401f9720.tar.gz cygwin-filesystem-e51c76a24d3b1f8128133393d036a2c5401f9720.tar.xz cygwin-filesystem-e51c76a24d3b1f8128133393d036a2c5401f9720.zip |
Rename Toolchain-cygwin{32,64}.cmake to toolchain-cygwin{32,64}.cmake
Based on mingw-filesystem commit faf1180f1185bd8887f6408cab9054df256fbd97.
Diffstat (limited to 'toolchain-cygwin32.cmake')
-rw-r--r-- | toolchain-cygwin32.cmake | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/toolchain-cygwin32.cmake b/toolchain-cygwin32.cmake new file mode 100644 index 0000000..b5e41ef --- /dev/null +++ b/toolchain-cygwin32.cmake @@ -0,0 +1,36 @@ +SET(CMAKE_SYSTEM_NAME CYGWIN) +SET(CMAKE_LEGACY_CYGWIN_WIN32 0) + +# specify the cross compiler +SET(CMAKE_C_COMPILER /usr/bin/i686-pc-cygwin-gcc) +SET(CMAKE_CXX_COMPILER /usr/bin/i686-pc-cygwin-g++) +SET(CMAKE_Fortran_COMPILER /usr/bin/i686-pc-cygwin-gfortran) +SET(CMAKE_RC_COMPILER /usr/bin/i686-pc-cygwin-windres) +SET(CMAKE_AR:FILEPATH /usr/bin/i686-pc-cygwin-ar) +SET(CMAKE_RANLIB:FILEPATH /usr/bin/i686-pc-cygwin-ranlib) + +# where is the target environment +SET(CMAKE_FIND_ROOT_PATH /usr/i686-pc-cygwin/sys-root/usr) + +# 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) + +SET(PKG_CONFIG_EXECUTABLE /usr/bin/i686-pc-cygwin-pkg-config) +SET(PKGCONFIG_EXECUTABLE /usr/bin/i686-pc-cygwin-pkg-config) + +# FindQt4.cmake queries qmake to get information, +# which doesn't work when crosscompiling +SET(QT_QMAKE_EXECUTABLE /usr/bin/i686-pc-cygwin-qmake) +SET(QT_MOC_EXECUTABLE /usr/bin/i686-pc-cygwin-moc) +SET(QT_RCC_EXECUTABLE /usr/bin/i686-pc-cygwin-rcc) +SET(QT_UIC_EXECUTABLE /usr/bin/i686-pc-cygwin-uic) +SET(QT_UIC3_EXECUTABLE /usr/bin/i686-pc-cygwin-uic3) +SET(QT_LRELEASE_EXECUTABLE /usr/bin/i686-pc-cygwin-lrelease) +SET(QT_LUPDATE_EXECUTABLE /usr/bin/i686-pc-cygwin-lupdate) +SET(QT_DBUSCPP2XML_EXECUTABLE /usr/bin/i686-pc-cygwin-qdbuscpp2xml) +SET(QT_DBUSXML2CPP_EXECUTABLE /usr/bin/i686-pc-cygwin-qdbusxml2cpp) +SET(QT_HEADERS_DIR ${CMAKE_FIND_ROOT_PATH}/include) +SET(QT_LIBRARY_DIR ${CMAKE_FIND_ROOT_PATH}/lib) |