diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-01-02 01:48:38 +0200 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-01-02 02:41:24 +0200 |
commit | 3eeae12c498d1a4dbe969462d2ba841f77ee3ccb (patch) | |
tree | ff8eab35e732bc0749fc11677c8873a7b3a58704 /toolchain.cmake | |
download | plus-3eeae12c498d1a4dbe969462d2ba841f77ee3ccb.tar.gz plus-3eeae12c498d1a4dbe969462d2ba841f77ee3ccb.tar.bz2 plus-3eeae12c498d1a4dbe969462d2ba841f77ee3ccb.tar.xz plus-3eeae12c498d1a4dbe969462d2ba841f77ee3ccb.zip |
Initial commit.
This code based on mana client http://www.gitorious.org/mana/mana
and my private repository.
Diffstat (limited to 'toolchain.cmake')
-rw-r--r-- | toolchain.cmake | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/toolchain.cmake b/toolchain.cmake new file mode 100644 index 000000000..dd2e1a90e --- /dev/null +++ b/toolchain.cmake @@ -0,0 +1,33 @@ +# the name of the target operating system +SET(CMAKE_SYSTEM_NAME Windows) + +# toolchain prefix, can be overridden by -DTOOLCHAIN=... +# IF (NOT TOOLCHAIN) +SET(TOOLCHAIN "i586-mingw32msvc-") +# ENDIF() + +# which compilers to use for C and C++ +SET(CMAKE_C_COMPILER ${TOOLCHAIN}gcc) +SET(CMAKE_CXX_COMPILER ${TOOLCHAIN}g++) +SET(CMAKE_RC_COMPILER ${TOOLCHAIN}windres) + +SET(CMAKE_INSTALL_PREFIX ./win) +SET(CMAKE_BUILD_TYPE RelWithDebInfo) + +SET(SDLIMAGE_INCLUDE_DIR ../mana_win/libs/include/SDL) +SET(SDLMIXER_INCLUDE_DIR ../mana_win/libs/include/SDL) +SET(SDLNET_INCLUDE_DIR ../mana_win/libs/include/SDL) +SET(SDLTTF_INCLUDE_DIR ../mana_win/libs/include/SDL) +SET(SDL_INCLUDE_DIR ../mana_win/libs/include/SDL) + + +# here is the target environment located +SET(CMAKE_FIND_ROOT_PATH /usr/i586-mingw32msvc /../mana_win/libs ) + +# adjust the default behaviour of the FIND_XXX() commands: +# search headers and libraries in the target environment, search +# programs in the host environment +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) + |