Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/archive/sound5/src/libraries/util/CMakeLists.txt @ 10022

Last change on this file since 10022 was 6503, checked in by rgrieder, 15 years ago

Disabled some more warnings in MultiType that OGRE v1.7 revealed.

  • Property svn:eol-style set to native
File size: 1.8 KB
Line 
1 #
2 #             ORXONOX - the hottest 3D action shooter ever to exist
3 #                             > www.orxonox.net <
4 #
5 #        This program is free software; you can redistribute it and/or
6 #         modify it under the terms of the GNU General Public License
7 #        as published by the Free Software Foundation; either version 2
8 #            of the License, or (at your option) any later version.
9 #
10 #       This program is distributed in the hope that it will be useful,
11 #        but WITHOUT ANY WARRANTY; without even the implied warranty of
12 #        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 #                 GNU General Public License for more details.
14 #
15 #   You should have received a copy of the GNU General Public License along
16 #      with this program; if not, write to the Free Software Foundation,
17 #     Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
18 #
19
20SET_SOURCE_FILES(UTIL_SRC_FILES
21  Exception.cc
22  Math.cc
23  MultiType.cc
24  Scope.cc
25  StringUtils.cc
26COMPILATION_BEGIN StableCompilation.cc
27  Clipboard.cc
28  Clock.cc
29  CRC32.cc
30  ExprParser.cc
31  OutputHandler.cc
32  SignalHandler.cc
33  Sleep.cc
34  SubString.cc
35COMPILATION_END
36)
37
38IF(GCC_NO_SYSTEM_HEADER_SUPPORT)
39  # Get around displaying a few hundred lines of warning code
40  SET_SOURCE_FILES_PROPERTIES(MultiType.cc PROPERTIES COMPILE_FLAGS "-w")
41ENDIF()
42IF(MSVC)
43  # Simply using #pragma warning(disable:4244) doesn't really disable it
44  # if the warning occurs in a template in another file
45  # Hence promote it manually to a higher warning level (4)
46  SET_SOURCE_FILES_PROPERTIES(MultiType.cc PROPERTIES COMPILE_FLAGS "-w44244")
47ENDIF()
48
49ORXONOX_ADD_LIBRARY(util
50  FIND_HEADER_FILES
51  DEFINE_SYMBOL
52    "UTIL_SHARED_BUILD"
53  LINK_LIBRARIES
54    ${CEGUI_LIBRARY}
55    ${OGRE_LIBRARY}
56  SOURCE_FILES
57    ${UTIL_SRC_FILES}
58)
Note: See TracBrowser for help on using the repository browser.