annotate Resources/MinGWToolchain.cmake @ 654:00ff0abe1130

back to mainline
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 30 Oct 2013 11:56:11 +0100
parents ec2c2411d4db
children 3e53edcd0120
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
3959d33612cc initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1 # http://www.vtk.org/Wiki/CmakeMingw
3959d33612cc initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
2
3959d33612cc initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
3 # the name of the target operating system
571
ec2c2411d4db versioning
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 0
diff changeset
4 set(CMAKE_SYSTEM_NAME Windows)
0
3959d33612cc initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
5
3959d33612cc initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
6 # which compilers to use for C and C++
571
ec2c2411d4db versioning
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 0
diff changeset
7 set(CMAKE_C_COMPILER i586-mingw32msvc-gcc)
ec2c2411d4db versioning
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 0
diff changeset
8 set(CMAKE_CXX_COMPILER i586-mingw32msvc-g++)
ec2c2411d4db versioning
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 0
diff changeset
9 set(CMAKE_RC_COMPILER i586-mingw32msvc-windres)
0
3959d33612cc initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
10
3959d33612cc initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
11 # here is the target environment located
571
ec2c2411d4db versioning
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 0
diff changeset
12 set(CMAKE_FIND_ROOT_PATH /usr/i586-mingw32msvc)
0
3959d33612cc initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
13
3959d33612cc initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
14 # adjust the default behaviour of the FIND_XXX() commands:
3959d33612cc initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
15 # search headers and libraries in the target environment, search
3959d33612cc initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
16 # programs in the host environment
3959d33612cc initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
17 set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
3959d33612cc initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
18 set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
3959d33612cc initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
19 set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)