Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 2628 was 2627, checked in by rgrieder, 16 years ago

Removed three calls to GET_ALL_HEADER_FILES which in turn calls FILE(GLOB_RECURSE), which is quite slow.

  • Property svn:eol-style set to native
File size: 1.9 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
60ADD_LIBRARY(util SHARED ${UTIL_FILES})
61SET_TARGET_PROPERTIES(util PROPERTIES DEFINE_SYMBOL "UTIL_SHARED_BUILD")
62TARGET_LINK_LIBRARIES(util ${OGRE_LIBRARY})
63
64IF(NOT WIN32)
65  INSTALL(TARGETS util LIBRARY DESTINATION lib)
66ENDIF()
Note: See TracBrowser for help on using the repository browser.