Last change
on this file since 3138 was
3116,
checked in by rgrieder, 15 years ago
|
Added new CMake functions: ORXONOX_ADD_LIBRARY and ORXONOX_ADD_EXECUTABLE.
They replace the current functions ADD_LIBRARY and ADD_EXECUTABLE to allow for clearer and easier declaration.
And it allows for GCC precompiled header file support in the first place
More information can be found in TargetUtilities.cmake
|
-
Property svn:eol-style set to
native
|
File size:
1.7 KB
|
Rev | Line | |
---|
[2710] | 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 | |
---|
| 20 | SET_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 |
---|
[2855] | 31 | OrxEnum.h |
---|
[2710] | 32 | OutputBuffer.h |
---|
| 33 | OutputHandler.h |
---|
| 34 | SignalHandler.h |
---|
| 35 | Sleep.h |
---|
| 36 | String.h |
---|
| 37 | SubString.h |
---|
| 38 | UtilPrereqs.h |
---|
| 39 | mbool.h |
---|
[3089] | 40 | |
---|
[1505] | 41 | Clipboard.cc |
---|
[1751] | 42 | CRC32.cc |
---|
[1764] | 43 | Exception.cc |
---|
[1505] | 44 | ExprParser.cc |
---|
| 45 | Math.cc |
---|
[1747] | 46 | MultiType.cc |
---|
| 47 | OutputBuffer.cc |
---|
| 48 | OutputHandler.cc |
---|
[2087] | 49 | SignalHandler.cc |
---|
[2773] | 50 | Sleep.cc |
---|
[1505] | 51 | String.cc |
---|
| 52 | SubString.cc |
---|
| 53 | ) |
---|
| 54 | |
---|
[2710] | 55 | IF(GCC_NO_SYSTEM_HEADER_SUPPORT) |
---|
| 56 | # Get around displaying a few hundred lines of warning code |
---|
| 57 | SET_SOURCE_FILES_PROPERTIES(MultiType.cc PROPERTIES COMPILE_FLAGS "-w") |
---|
| 58 | ENDIF() |
---|
[1505] | 59 | |
---|
[3116] | 60 | ORXONOX_ADD_LIBRARY(util |
---|
| 61 | #FIND_HEADER_FILES |
---|
| 62 | DEFINE_SYMBOL |
---|
| 63 | "UTIL_SHARED_BUILD" |
---|
| 64 | LINK_LIBRARIES |
---|
| 65 | ${OGRE_LIBRARY} |
---|
| 66 | SOURCE_FILES |
---|
| 67 | ${UTIL_FILES} |
---|
| 68 | ) |
---|
Note: See
TracBrowser
for help on using the repository browser.