annotate Resources/Orthanc/MinGWToolchain.cmake @ 109:7381a7674b36

wip: adding labels
author Alain Mazy <am@osimis.io>
date Fri, 18 Aug 2023 12:08:49 +0200
parents 1a13c4fbc9a1
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
40
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 22
diff changeset
1 # Orthanc - A Lightweight, RESTful DICOM Store
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 22
diff changeset
2 # Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 22
diff changeset
3 # Department, University Hospital of Liege, Belgium
68
1a13c4fbc9a1 copyrights
Alain Mazy <am@osimis.io>
parents: 46
diff changeset
4 # Copyright (C) 2017-2023 Osimis S.A., Belgium
40
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 22
diff changeset
5 #
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 22
diff changeset
6 # This program is free software: you can redistribute it and/or
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 22
diff changeset
7 # modify it under the terms of the GNU Lesser General Public License
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 22
diff changeset
8 # as published by the Free Software Foundation, either version 3 of
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 22
diff changeset
9 # the License, or (at your option) any later version.
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 22
diff changeset
10 #
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 22
diff changeset
11 # This program is distributed in the hope that it will be useful, but
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 22
diff changeset
12 # WITHOUT ANY WARRANTY; without even the implied warranty of
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 22
diff changeset
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 22
diff changeset
14 # Lesser General Public License for more details.
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 22
diff changeset
15 #
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 22
diff changeset
16 # You should have received a copy of the GNU Lesser General Public
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 22
diff changeset
17 # License along with this program. If not, see
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 22
diff changeset
18 # <http://www.gnu.org/licenses/>.
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 22
diff changeset
19
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 22
diff changeset
20
22
c44013681a51 now using the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
21 # the name of the target operating system
c44013681a51 now using the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
22 set(CMAKE_SYSTEM_NAME Windows)
c44013681a51 now using the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
23
c44013681a51 now using the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
24 # which compilers to use for C and C++
c44013681a51 now using the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
25 set(CMAKE_C_COMPILER i586-mingw32msvc-gcc)
c44013681a51 now using the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
26 set(CMAKE_CXX_COMPILER i586-mingw32msvc-g++)
c44013681a51 now using the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
27 set(CMAKE_RC_COMPILER i586-mingw32msvc-windres)
c44013681a51 now using the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
28
c44013681a51 now using the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
29 # here is the target environment located
c44013681a51 now using the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
30 set(CMAKE_FIND_ROOT_PATH /usr/i586-mingw32msvc)
c44013681a51 now using the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
31
c44013681a51 now using the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
32 # adjust the default behaviour of the FIND_XXX() commands:
c44013681a51 now using the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
33 # search headers and libraries in the target environment, search
c44013681a51 now using the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
34 # programs in the host environment
c44013681a51 now using the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
35 set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
c44013681a51 now using the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
36 set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
c44013681a51 now using the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
37 set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
c44013681a51 now using the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
38
c44013681a51 now using the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
39 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DSTACK_SIZE_PARAM_IS_A_RESERVATION=0x10000" CACHE INTERNAL "" FORCE)
c44013681a51 now using the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
40 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DSTACK_SIZE_PARAM_IS_A_RESERVATION=0x10000" CACHE INTERNAL "" FORCE)