Add base files for net code

This commit is contained in:
mdiluzio 2015-01-02 13:55:23 +00:00
parent 05c8318099
commit ca5526b2b7
7 changed files with 21 additions and 1 deletions

View file

@ -11,15 +11,20 @@ include_directories(
# Add the sources # Add the sources
set( SOURCES set( SOURCES
main.cpp 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_MAPS "/usr/local/share/ttrts/maps/" )
set( TTRTS_GAMES "/tmp/" ) set( TTRTS_GAMES "/tmp/" )
set( TTRTS_PORT 11715 )
# define these defaults in code # define these defaults in code
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DTTRTS_MAPS=${TTRTS_MAPS}" ) 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_GAMES=${TTRTS_GAMES}" )
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DTTRTS_PORT=${TTRTS_PORT}" )
# Add the executable # Add the executable
add_executable( ${PROJECT_NAME} ${SOURCES} ) add_executable( ${PROJECT_NAME} ${SOURCES} )

1
source/client/client.cpp Normal file
View file

@ -0,0 +1 @@
#include "client.h"

4
source/client/client.h Normal file
View file

@ -0,0 +1,4 @@
#ifndef _TTRTS_CLIENT_H_
#define _TTRTS_CLIENT_H_
#endif

1
source/client/net.cpp Normal file
View file

@ -0,0 +1 @@
#include "net.h"

4
source/client/net.h Normal file
View file

@ -0,0 +1,4 @@
#ifndef _TTRTS_NET_H_
#define _TTRTS_NET_H_
#endif

1
source/client/server.cpp Normal file
View file

@ -0,0 +1 @@
#include "server.h"

4
source/client/server.h Normal file
View file

@ -0,0 +1,4 @@
#ifndef _TTRTS_SERVER_H_
#define _TTRTS_SERVER_H_
#endif