summaryrefslogtreecommitdiff
path: root/packaging/windows/toolchain.cmake.example
diff options
context:
space:
mode:
authorBernd Wachter <bwachter-tmw@lart.info>2011-01-07 17:21:08 +0200
committerBernd Wachter <bwachter-tmw@lart.info>2011-01-07 17:21:08 +0200
commitdfca3c3aa8144a1b1fbae49fbeaa94ed1307c067 (patch)
tree77f0c99feff2b910ec5a0a02508685b31d43a695 /packaging/windows/toolchain.cmake.example
parent7f944f5af98927f57484ef5273a25fd92180efb4 (diff)
downloadmana-client-dfca3c3aa8144a1b1fbae49fbeaa94ed1307c067.tar.gz
mana-client-dfca3c3aa8144a1b1fbae49fbeaa94ed1307c067.tar.bz2
mana-client-dfca3c3aa8144a1b1fbae49fbeaa94ed1307c067.tar.xz
mana-client-dfca3c3aa8144a1b1fbae49fbeaa94ed1307c067.zip
Add win32 package helper scripts, change README to README.txt for NSIS
Diffstat (limited to 'packaging/windows/toolchain.cmake.example')
-rw-r--r--packaging/windows/toolchain.cmake.example22
1 files changed, 22 insertions, 0 deletions
diff --git a/packaging/windows/toolchain.cmake.example b/packaging/windows/toolchain.cmake.example
new file mode 100644
index 00000000..0e99bd37
--- /dev/null
+++ b/packaging/windows/toolchain.cmake.example
@@ -0,0 +1,22 @@
+# the name of the target operating system
+SET(CMAKE_SYSTEM_NAME Windows)
+
+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++)
+
+# here is the target environment located
+# the directories specified here should contain two directories,
+# 'include' for the headers, 'lib' for dlls and .a files
+SET(CMAKE_FIND_ROOT_PATH /build/mingw32 /build/tmw-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)