summaryrefslogtreecommitdiff
path: root/build/toolchain.cmake
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-10-13 02:33:04 +0300
committerAndrei Karas <akaras@inbox.ru>2011-10-13 04:00:29 +0300
commitd203be43c9e1006672a1a1da6b177fd43f4760c2 (patch)
tree5a8aa84610405c3b54dff8d38edfa15d08603269 /build/toolchain.cmake
parentd2c132d50f618e8b533cb69d39e3e76d5439def9 (diff)
downloadmanaplus-d203be43c9e1006672a1a1da6b177fd43f4760c2.tar.gz
manaplus-d203be43c9e1006672a1a1da6b177fd43f4760c2.tar.bz2
manaplus-d203be43c9e1006672a1a1da6b177fd43f4760c2.tar.xz
manaplus-d203be43c9e1006672a1a1da6b177fd43f4760c2.zip
Move build scripts and logs to build dir.
Diffstat (limited to 'build/toolchain.cmake')
-rw-r--r--build/toolchain.cmake33
1 files changed, 33 insertions, 0 deletions
diff --git a/build/toolchain.cmake b/build/toolchain.cmake
new file mode 100644
index 000000000..c8493c0c5
--- /dev/null
+++ b/build/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)
+SET(ENABLE_MANASERV OFF)
+
+# 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)
+