Changeset 2710 for code/trunk/src/network/CMakeLists.txt
- Timestamp:
- Feb 28, 2009, 7:46:37 PM (15 years ago)
- Location:
- code/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:ignore deleted
- Property svn:mergeinfo changed
-
code/trunk/src/network/CMakeLists.txt
r2662 r2710 1 SET( NETWORK_SRC_FILES 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 2 21 ChatListener.cc 3 22 Client.cc … … 14 33 Host.cc 15 34 ) 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}) 16 39 17 ADD_SOURCE_DIRECTORY(NETWORK_SRC_FILES packet) 18 ADD_SOURCE_DIRECTORY(NETWORK_SRC_FILES synchronisable) 40 GENERATE_SOURCE_GROUPS(${NETWORK_FILES}) 19 41 20 21 IF(WIN32) 22 ADD_LIBRARY( network ${NETWORK_SRC_FILES} ) 23 ELSE(WIN32) 24 ADD_LIBRARY( network SHARED ${NETWORK_SRC_FILES} ) 25 ENDIF(WIN32) 26 27 TARGET_LINK_LIBRARIES( network 42 ADD_LIBRARY(network SHARED ${NETWORK_FILES}) 43 SET_TARGET_PROPERTIES(network PROPERTIES DEFINE_SYMBOL "NETWORK_SHARED_BUILD") 44 TARGET_LINK_LIBRARIES(network 28 45 ${ZLIB_LIBRARY} 29 ${ENet_LIBRARY} 30 ${Boost_thread_LIBRARIES} 46 ${ENET_LIBRARY} 47 ${Boost_THREAD_LIBRARY} 48 util 31 49 core 32 50 ) 33 51 52 ORXONOX_INSTALL(network) 34 53 35 54 # build those parts only on request. 36 55 IF(NETWORK_TESTING_ENABLED) 37 56 ##### test for gamestate stuff ##### 38 SET( 57 SET(TEST_SRC_FILES 39 58 ${NETWORK_SRC_FILES} 40 59 ) 41 60 ADD_EXECUTABLE(networktest ${TEST_SRC_FILES}) 42 TARGET_LINK_LIBRARIES( 43 ${OGRE_LIBRAR IES}61 TARGET_LINK_LIBRARIES(networktest 62 ${OGRE_LIBRARY} 44 63 network 45 ${EN et_LIBRARY}64 ${ENET_LIBRARY} 46 65 ${ZLIB_LIBRARY} 47 ${WINDOWS_ENET_DEPENDENCIES}48 66 ) 49 67 ##### end test for gamestate stuff #####
Note: See TracChangeset
for help on using the changeset viewer.