Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/buildsystem2/src/util/CMakeLists.txt @ 2638

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

Removed about a thousand lines of warnings when compiling with GCC 3. It's not such a clean workaround but better than polluted output.

  • Property svn:eol-style set to native
File size: 2.0 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_FILES
21  CRC32.h
22  Clipboard.h
23  Convert.h
24  Debug.h
25  Exception.h
26  ExprParser.h
27  Integers.h
28  Math.h
29  MathConvert.h
30  MultiType.h
31  MultiTypeValue.h
32  OutputBuffer.h
33  OutputHandler.h
34  SignalHandler.h
35  Sleep.h
36  String.h
37  SubString.h
38  UtilPrereqs.h
39  mbool.h
40
41  Clipboard.cc
42  CRC32.cc
43  Exception.cc
44  ExprParser.cc
45  Math.cc
46  MultiType.cc
47  OutputBuffer.cc
48  OutputHandler.cc
49  SignalHandler.cc
50  String.cc
51  SubString.cc
52)
53#GET_ALL_HEADER_FILES(UTIL_HDR_FILES)
54#SET(UTIL_FILES ${UTIL_SRC_FILES} ${UTIL_HDR_FILES})
55GENERATE_SOURCE_GROUPS(${UTIL_FILES})
56# Also add OrxonoxConfig.h to have it least somewhere in the IDE
57LIST(APPEND UTIL_FILES ${CMAKE_BINARY_DIR}/src/OrxonoxConfig.h)
58SOURCE_GROUP("" FILES ${CMAKE_BINARY_DIR}/src/OrxonoxConfig.h)
59
60IF(NOT GCC_SYSTEM_HEADER_SUPPORT)
61  # Get around displaying a few hundred lines of warning code
62  SET_SOURCE_FILES_PROPERTIES(MultiType.cc PROPERTIES COMPILE_FLAGS "-w")
63ENDIF()
64
65ADD_LIBRARY(util SHARED ${UTIL_FILES})
66SET_TARGET_PROPERTIES(util PROPERTIES DEFINE_SYMBOL "UTIL_SHARED_BUILD")
67TARGET_LINK_LIBRARIES(util ${OGRE_LIBRARY})
68
69ORXONOX_INSTALL(util)
Note: See TracBrowser for help on using the repository browser.