[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(NETWORK_SRC_FILES |
---|
[2087] | 21 | ChatListener.cc |
---|
[1505] | 22 | Client.cc |
---|
| 23 | ClientConnection.cc |
---|
| 24 | ClientInformation.cc |
---|
[2087] | 25 | ClientConnectionListener.cc |
---|
[1505] | 26 | ConnectionManager.cc |
---|
[1735] | 27 | GamestateManager.cc |
---|
| 28 | GamestateClient.cc |
---|
| 29 | GamestateHandler.cc |
---|
[1505] | 30 | PacketBuffer.cc |
---|
| 31 | Server.cc |
---|
[2662] | 32 | TrafficControl.cc |
---|
[1735] | 33 | Host.cc |
---|
[1505] | 34 | ) |
---|
[2710] | 35 | ADD_SUBDIRECTORY(packet) |
---|
| 36 | ADD_SUBDIRECTORY(synchronisable) |
---|
| 37 | GET_ALL_HEADER_FILES(NETWORK_HDR_FILES) |
---|
| 38 | SET(NETWORK_FILES ${NETWORK_SRC_FILES} ${NETWORK_HDR_FILES}) |
---|
[1505] | 39 | |
---|
[2710] | 40 | GENERATE_SOURCE_GROUPS(${NETWORK_FILES}) |
---|
[2131] | 41 | |
---|
[2710] | 42 | ADD_LIBRARY(network SHARED ${NETWORK_FILES}) |
---|
| 43 | SET_TARGET_PROPERTIES(network PROPERTIES DEFINE_SYMBOL "NETWORK_SHARED_BUILD") |
---|
| 44 | TARGET_LINK_LIBRARIES(network |
---|
[1505] | 45 | ${ZLIB_LIBRARY} |
---|
[2710] | 46 | ${ENET_LIBRARY} |
---|
| 47 | ${Boost_THREAD_LIBRARY} |
---|
| 48 | util |
---|
[1505] | 49 | core |
---|
| 50 | ) |
---|
| 51 | |
---|
[2710] | 52 | ORXONOX_INSTALL(network) |
---|
[1505] | 53 | |
---|
| 54 | # build those parts only on request. |
---|
| 55 | IF(NETWORK_TESTING_ENABLED) |
---|
| 56 | ##### test for gamestate stuff ##### |
---|
[2710] | 57 | SET(TEST_SRC_FILES |
---|
[1735] | 58 | ${NETWORK_SRC_FILES} |
---|
[1505] | 59 | ) |
---|
| 60 | ADD_EXECUTABLE(networktest ${TEST_SRC_FILES}) |
---|
[2710] | 61 | TARGET_LINK_LIBRARIES(networktest |
---|
| 62 | ${OGRE_LIBRARY} |
---|
[1505] | 63 | network |
---|
[2710] | 64 | ${ENET_LIBRARY} |
---|
[1505] | 65 | ${ZLIB_LIBRARY} |
---|
| 66 | ) |
---|
| 67 | ##### end test for gamestate stuff ##### |
---|
| 68 | ENDIF(NETWORK_TESTING_ENABLED) |
---|