Add base files for net code
This commit is contained in:
parent
05c8318099
commit
ca5526b2b7
7 changed files with 21 additions and 1 deletions
source/client
|
@ -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} )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue