Add base files for net code
This commit is contained in:
parent
05c8318099
commit
ca5526b2b7
7 changed files with 21 additions and 1 deletions
|
@ -11,15 +11,20 @@ include_directories(
|
|||
# Add the sources
|
||||
set( SOURCES
|
||||
main.cpp
|
||||
client.cpp
|
||||
server.cpp
|
||||
net.cpp
|
||||
)
|
||||
|
||||
# Set defaults for ttrts maps and games
|
||||
# Set defaults for ttrts variables
|
||||
set( TTRTS_MAPS "/usr/local/share/ttrts/maps/" )
|
||||
set( TTRTS_GAMES "/tmp/" )
|
||||
set( TTRTS_PORT 11715 )
|
||||
|
||||
# define these defaults in code
|
||||
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DTTRTS_MAPS=${TTRTS_MAPS}" )
|
||||
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DTTRTS_GAMES=${TTRTS_GAMES}" )
|
||||
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DTTRTS_PORT=${TTRTS_PORT}" )
|
||||
|
||||
# Add the executable
|
||||
add_executable( ${PROJECT_NAME} ${SOURCES} )
|
||||
|
|
1
source/client/client.cpp
Normal file
1
source/client/client.cpp
Normal file
|
@ -0,0 +1 @@
|
|||
#include "client.h"
|
4
source/client/client.h
Normal file
4
source/client/client.h
Normal file
|
@ -0,0 +1,4 @@
|
|||
#ifndef _TTRTS_CLIENT_H_
|
||||
#define _TTRTS_CLIENT_H_
|
||||
|
||||
#endif
|
1
source/client/net.cpp
Normal file
1
source/client/net.cpp
Normal file
|
@ -0,0 +1 @@
|
|||
#include "net.h"
|
4
source/client/net.h
Normal file
4
source/client/net.h
Normal file
|
@ -0,0 +1,4 @@
|
|||
#ifndef _TTRTS_NET_H_
|
||||
#define _TTRTS_NET_H_
|
||||
|
||||
#endif
|
1
source/client/server.cpp
Normal file
1
source/client/server.cpp
Normal file
|
@ -0,0 +1 @@
|
|||
#include "server.h"
|
4
source/client/server.h
Normal file
4
source/client/server.h
Normal file
|
@ -0,0 +1,4 @@
|
|||
#ifndef _TTRTS_SERVER_H_
|
||||
#define _TTRTS_SERVER_H_
|
||||
|
||||
#endif
|
Loading…
Add table
Reference in a new issue