Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/pickups2/src/util/CMakeLists.txt @ 2919

Last change on this file since 2919 was 2855, checked in by rgrieder, 16 years ago

Two small fixes.

  • Property svn:eol-style set to native
File size: 2.3 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  Math.h
28  MathConvert.h
29  MultiType.h
30  MultiTypeValue.h
31  OrxEnum.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  Sleep.cc
51  String.cc
52  SubString.cc
53)
54#GET_ALL_HEADER_FILES(UTIL_HDR_FILES)
55#SET(UTIL_FILES ${UTIL_SRC_FILES} ${UTIL_HDR_FILES})
56GENERATE_SOURCE_GROUPS(${UTIL_FILES})
57# Also add OrxonoxConfig to have it least somewhere in the IDE
58LIST(APPEND UTIL_FILES
59  ${CMAKE_BINARY_DIR}/src/OrxonoxConfig.h
60  ${CMAKE_SOURCE_DIR}/src/OrxonoxConfig.h.in
61  ${CMAKE_BINARY_DIR}/src/SpecialConfig.h
62  ${CMAKE_SOURCE_DIR}/src/SpecialConfig.h.in
63)
64SOURCE_GROUP("" FILES
65  ${CMAKE_BINARY_DIR}/src/OrxonoxConfig.h
66  ${CMAKE_SOURCE_DIR}/src/OrxonoxConfig.h.in
67  ${CMAKE_BINARY_DIR}/src/SpecialConfig.h
68  ${CMAKE_SOURCE_DIR}/src/SpecialConfig.h.in
69)
70
71IF(GCC_NO_SYSTEM_HEADER_SUPPORT)
72  # Get around displaying a few hundred lines of warning code
73  SET_SOURCE_FILES_PROPERTIES(MultiType.cc PROPERTIES COMPILE_FLAGS "-w")
74ENDIF()
75
76ADD_LIBRARY(util SHARED ${UTIL_FILES})
77SET_TARGET_PROPERTIES(util PROPERTIES DEFINE_SYMBOL "UTIL_SHARED_BUILD")
78TARGET_LINK_LIBRARIES(util ${OGRE_LIBRARY})
79
80ORXONOX_INSTALL(util)
Note: See TracBrowser for help on using the repository browser.