Mercurial > audio-send
view XCompile.txt @ 0:f9476ff7637e
initial forking of open-al to create multiple listeners
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Tue, 25 Oct 2011 13:02:31 -0700 |
parents | |
children |
line wrap: on
line source
1 # Cross-compiling requires CMake 2.6 or newer. To use it from build/, call it2 # like this:3 # cmake .. -DCMAKE_TOOLCHAIN_FILE=../XCompile.txt -DHOST=i686-pc-mingw324 # Where 'i686-pc-mingw32' is the host prefix for your cross-compiler. If you5 # already have a toolchain file setup, you may use that instead of this file.7 # the name of the target operating system8 SET(CMAKE_SYSTEM_NAME Windows)10 # which compilers to use for C and C++11 SET(CMAKE_C_COMPILER "${HOST}-gcc")12 SET(CMAKE_CXX_COMPILER "${HOST}-g++")14 # here is the target environment located15 SET(CMAKE_FIND_ROOT_PATH "/usr/${HOST}")17 # here is where stuff gets installed to18 SET(CMAKE_INSTALL_PREFIX "${CMAKE_FIND_ROOT_PATH}/usr" CACHE STRING "Install path prefix, prepended onto install directories." FORCE)20 # adjust the default behaviour of the FIND_XXX() commands:21 # search headers and libraries in the target environment, search22 # programs in the host environment23 set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)24 set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)25 set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)27 # set env vars so that pkg-config will look in the appropriate directory for28 # .pc files (as there seems to be no way to force using ${HOST}-pkg-config)29 set(ENV{PKG_CONFIG_LIBDIR} "${CMAKE_INSTALL_PREFIX}/lib/pkgconfig")30 set(ENV{PKG_CONFIG_PATH} "")