Improved header in sdl_server.cpp...

...and added a common_srcs list in CMakeFile.txt
This commit is contained in:
Guillermo Biset 2010-06-15 20:33:16 +00:00
parent b77e1d572e
commit 336e831ec0
2 changed files with 33 additions and 4 deletions

View File

@ -4,11 +4,13 @@ include_directories( ../api )
find_package( Boost 1.35 REQUIRED COMPONENTS thread system)
set ( server_srcs asio_server.cpp asio_listener.cpp )
set ( common_srcs asio_listener.cpp )
set ( client_srcs asio_client.cpp asio_listener.cpp asio_proxy_connection.cpp )
set ( server_srcs asio_server.cpp )
add_library( ana SHARED ${server_srcs} ${client_srcs} )
set ( client_srcs asio_client.cpp asio_proxy_connection.cpp )
add_library( ana SHARED ${server_srcs} ${client_srcs} ${common_srcs} )
target_link_libraries( ana ${Boost_SYSTEM_LIBRARY} ${Boost_THREAD_LIBRARY} )

View File

@ -1,4 +1,31 @@
#include <iostream>
/* $Id$ */
/**
* @file sdl_server.cpp
* @brief Server application using SDL_net to test compatibility with ana.
*
* Language : C
*
* Code was taken from:
* <http://gpwiki.org/index.php/SDL:Tutorial:Using_SDL_net>
*
* Documentation at gpwiki is published under the GNU Free Documentation License 1.2.
* See <http://www.gnu.org/copyleft/fdl.html>
*
* ana is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* ana is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with ana. If not, see <http://www.gnu.org/licenses/>.
*
*/
#include <SDL/SDL_net.h>