Embedding more preproc flags to CMake config (mostly debugging stuff)

parent 0f9cd145
......@@ -7,16 +7,51 @@ include( VistaCommon )
if( NOT DEFINED ITA_VANET_VERSION_MAJOR )
set( ITA_VANET_VERSION_MAJOR "v2016" CACHE STRING "VANet version major (usually 'v' and year)" )
endif( NOT DEFINED ITA_VANET_VERSION_MAJOR )
endif( )
if( NOT DEFINED ITA_VANET_VERSION_MINOR )
set( ITA_VANET_VERSION_MINOR "a" CACHE STRING "VANet version minor (usually a,b,c ...)" )
endif( NOT DEFINED ITA_VANET_VERSION_MINOR )
endif( )
if( NOT DEFINED ITA_VANET_DEFAULT_PORT )
set( ITA_VANET_DEFAULT_PORT 12340 CACHE INT "VANet default TCP port" )
endif( NOT DEFINED ITA_VANET_DEFAULT_PORT )
endif( )
if( NOT DEFINED ITA_VANET_CLIENT_VERBOSE )
set( ITA_VANET_CLIENT_VERBOSE false CACHE BOOL "VANet client side with verbose output" )
mark_as_advanced( ITA_VANET_CLIENT_VERBOSE )
endif( )
if( NOT DEFINED ITA_VANET_CLIENT_SHOW_RAW_TRAFFIC )
set( ITA_VANET_CLIENT_SHOW_RAW_TRAFFIC false CACHE BOOL "VANet client side print raw network traffic (debugging)" )
mark_as_advanced( ITA_VANET_CLIENT_SHOW_RAW_TRAFFIC )
endif( )
if( NOT DEFINED ITA_VANET_SERVER_VERBOSE )
set( ITA_VANET_SERVER_VERBOSE false CACHE BOOL "VANet server side with verbose output" )
mark_as_advanced( ITA_VANET_SERVER_VERBOSE )
endif( )
if( NOT DEFINED ITA_VANET_SERVER_SHOW_RAW_TRAFFIC )
set( ITA_VANET_SERVER_SHOW_RAW_TRAFFIC false CACHE BOOL "VANet server side print raw network traffic (debugging)" )
mark_as_advanced( ITA_VANET_SERVER_SHOW_RAW_TRAFFIC )
endif( )
if( ITA_VANET_CLIENT_VERBOSE )
add_definitions( -DVANET_CLIENT_VERBOSE )
endif( )
if( ITA_VANET_CLIENT_SHOW_RAW_TRAFFIC )
add_definitions( -DVANET_CLIENT_SHOW_RAW_TRAFFIC )
endif( )
if( ITA_VANET_SERVER_VERBOSE )
add_definitions( -DVANET_SERVER_VERBOSE )
endif( )
if( ITA_VANET_SERVER_SHOW_RAW_TRAFFIC )
add_definitions( -DVANET_SERVER_SHOW_RAW_TRAFFIC )
endif( )
vista_use_package( VistaCoreLibs REQUIRED COMPONENTS VistaBase VistaInterProcComm FIND_DEPENDENCIES )
vista_use_package( VABase REQUIRED )
......@@ -29,7 +64,7 @@ include_directories( "include" )
if( ITA_VISTA_BUILD_STATIC )
add_definitions( -DVISTABASE_STATIC -DVISTAASPECTS_STATIC -DVISTAINTERPROCCOMM_STATIC )
endif( ITA_VISTA_BUILD_STATIC )
endif( )
if( BUILD_SHARED_LIBS )
add_definitions( -DVANET_EXPORTS )
......
This diff is collapsed.
This diff is collapsed.
......@@ -31,7 +31,7 @@
#include <VistaBase/VistaTimeUtils.h>
int main( int argc, char* argv[] )
int main( int, char** )
{
IVANetClient* pClient = IVANetClient::Create();
......@@ -53,7 +53,7 @@ int main( int argc, char* argv[] )
bool bMute = false;
while( bContinue )
{
char c = std::cin.get();
char c = char( std::cin.get() );
try
{
switch( c )
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment