[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 |
---|
| 31 | OutputBuffer.h |
---|
| 32 | OutputHandler.h |
---|
| 33 | SignalHandler.h |
---|
| 34 | Sleep.h |
---|
| 35 | String.h |
---|
| 36 | SubString.h |
---|
| 37 | UtilPrereqs.h |
---|
| 38 | mbool.h |
---|
| 39 | |
---|
[1505] | 40 | Clipboard.cc |
---|
[1751] | 41 | CRC32.cc |
---|
[1764] | 42 | Exception.cc |
---|
[1505] | 43 | ExprParser.cc |
---|
| 44 | Math.cc |
---|
[1747] | 45 | MultiType.cc |
---|
| 46 | OutputBuffer.cc |
---|
| 47 | OutputHandler.cc |
---|
[2087] | 48 | SignalHandler.cc |
---|
[2773] | 49 | Sleep.cc |
---|
[1505] | 50 | String.cc |
---|
| 51 | SubString.cc |
---|
| 52 | ) |
---|
[2710] | 53 | #GET_ALL_HEADER_FILES(UTIL_HDR_FILES) |
---|
| 54 | #SET(UTIL_FILES ${UTIL_SRC_FILES} ${UTIL_HDR_FILES}) |
---|
| 55 | GENERATE_SOURCE_GROUPS(${UTIL_FILES}) |
---|
| 56 | # Also add OrxonoxConfig to have it least somewhere in the IDE |
---|
| 57 | LIST(APPEND UTIL_FILES |
---|
| 58 | ${CMAKE_BINARY_DIR}/src/OrxonoxConfig.h |
---|
| 59 | ${CMAKE_SOURCE_DIR}/src/OrxonoxConfig.h.in |
---|
| 60 | ${CMAKE_BINARY_DIR}/src/SpecialConfig.h |
---|
| 61 | ${CMAKE_SOURCE_DIR}/src/SpecialConfig.h.in |
---|
| 62 | ) |
---|
| 63 | SOURCE_GROUP("" FILES |
---|
| 64 | ${CMAKE_BINARY_DIR}/src/OrxonoxConfig.h |
---|
| 65 | ${CMAKE_SOURCE_DIR}/src/OrxonoxConfig.h.in |
---|
| 66 | ${CMAKE_BINARY_DIR}/src/SpecialConfig.h |
---|
| 67 | ${CMAKE_SOURCE_DIR}/src/SpecialConfig.h.in |
---|
| 68 | ) |
---|
[1505] | 69 | |
---|
[2710] | 70 | IF(GCC_NO_SYSTEM_HEADER_SUPPORT) |
---|
| 71 | # Get around displaying a few hundred lines of warning code |
---|
| 72 | SET_SOURCE_FILES_PROPERTIES(MultiType.cc PROPERTIES COMPILE_FLAGS "-w") |
---|
| 73 | ENDIF() |
---|
[1505] | 74 | |
---|
[2710] | 75 | ADD_LIBRARY(util SHARED ${UTIL_FILES}) |
---|
| 76 | SET_TARGET_PROPERTIES(util PROPERTIES DEFINE_SYMBOL "UTIL_SHARED_BUILD") |
---|
| 77 | TARGET_LINK_LIBRARIES(util ${OGRE_LIBRARY}) |
---|
| 78 | |
---|
| 79 | ORXONOX_INSTALL(util) |
---|