diff --git a/source/client/CMakeLists.txt b/source/client/CMakeLists.txt index 6549943..53ae704 100644 --- a/source/client/CMakeLists.txt +++ b/source/client/CMakeLists.txt @@ -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} ) diff --git a/source/client/client.cpp b/source/client/client.cpp new file mode 100644 index 0000000..a7f5447 --- /dev/null +++ b/source/client/client.cpp @@ -0,0 +1 @@ +#include "client.h" \ No newline at end of file diff --git a/source/client/client.h b/source/client/client.h new file mode 100644 index 0000000..cb8909f --- /dev/null +++ b/source/client/client.h @@ -0,0 +1,4 @@ +#ifndef _TTRTS_CLIENT_H_ +#define _TTRTS_CLIENT_H_ + +#endif \ No newline at end of file diff --git a/source/client/net.cpp b/source/client/net.cpp new file mode 100644 index 0000000..35b5308 --- /dev/null +++ b/source/client/net.cpp @@ -0,0 +1 @@ +#include "net.h" \ No newline at end of file diff --git a/source/client/net.h b/source/client/net.h new file mode 100644 index 0000000..26fdbf0 --- /dev/null +++ b/source/client/net.h @@ -0,0 +1,4 @@ +#ifndef _TTRTS_NET_H_ +#define _TTRTS_NET_H_ + +#endif \ No newline at end of file diff --git a/source/client/server.cpp b/source/client/server.cpp new file mode 100644 index 0000000..e9ea187 --- /dev/null +++ b/source/client/server.cpp @@ -0,0 +1 @@ +#include "server.h" \ No newline at end of file diff --git a/source/client/server.h b/source/client/server.h new file mode 100644 index 0000000..c13c320 --- /dev/null +++ b/source/client/server.h @@ -0,0 +1,4 @@ +#ifndef _TTRTS_SERVER_H_ +#define _TTRTS_SERVER_H_ + +#endif \ No newline at end of file