Renaming tests

parent 78eeaae7
cmake_minimum_required( VERSION 2.8 )
if( NOT VANET_COMMON_BUILD )
project( VANetTest )
list( APPEND CMAKE_MODULE_PATH "$ENV{VISTA_CMAKE_COMMON}" )
include( VistaCommon )
endif()
project( VANetTest )
list( APPEND CMAKE_MODULE_PATH "$ENV{VISTA_CMAKE_COMMON}" )
include( VistaCommon )
vista_use_package( VANet REQUIRED FIND_DEPENDENCIES )
vista_find_package( VACore QUIET )
add_subdirectory( VANetTestClient )
add_subdirectory( SimpleExample )
add_subdirectory( TestClient )
if( VVACORE_FOUND )
add_subdirectory( VANetTestServer )
endif( VVACORE_FOUND )
if( VACORE_FOUND )
add_subdirectory( TestServer )
endif( )
cmake_minimum_required( VERSION 2.8 )
project( VANetSimpleExampleScene )
list( APPEND CMAKE_MODULE_PATH "$ENV{VISTA_CMAKE_COMMON}" )
include( VistaCommon )
vista_use_package( VANet REQUIRED FIND_DEPENDENCIES )
vista_use_package( VistaCoreLibs REQUIRED COMPONENTS VistaBase FIND_DEPENDENCIES )
# compiler
if( ITA_VISTA_BUILD_STATIC )
add_definitions( -DVISTABASE_STATIC )
if( WIN32 )
set( VISTAINTERPROCCOMM_ADDITIONAL_DEPENDENCIES Ws2_32 )
endif( WIN32 )
endif( )
if( ITA_VA_BUILD_STATIC )
add_definitions( -DVABASE_STATIC -DVANET_STATIC )
endif( )
add_executable( VANetSimpleExampleScene VANetSimpleExampleScene.cpp )
target_link_libraries( VANetSimpleExampleScene ${VISTA_USE_PACKAGE_LIBRARIES} )
vista_configure_app( VANetSimpleExampleScene )
vista_install( VANetSimpleExampleScene )
vista_create_default_info_file( VANetSimpleExampleScene )
set_property( TARGET VANetSimpleExampleScene PROPERTY FOLDER "VA/Tests/VANet" )
/*
* --------------------------------------------------------------------------------------------
*
* VVV VVV A Virtual Acoustics (VA) | http://www.virtualacoustics.org
* VVV VVV AAA Licensed under the Apache License, Version 2.0
* VVV VVV AAA
* VVV VVV AAA Copyright 2015-2017
* VVVVVV AAA Institute of Technical Acoustics (ITA)
* VVVV AAA RWTH Aachen University
*
* --------------------------------------------------------------------------------------------
*/
// @sa http://www.virtualacoustics.org/overview.html
#include <VA.h>
#include <VANet.h>
#include <string>
int main( int, char** )
{
IVANetClient* pVANet = IVANetClient::Create();
pVANet->Initialize( "localhost" );
if( !pVANet->IsConnected() )
return 255;
IVAInterface* pVA = pVANet->GetCoreInstance();
pVA->Reset();
const std::string sSignalSourceID = pVA->CreateSignalSourceBufferFromFile( "ita_demosound.wav" );
pVA->SetSignalSourceBufferPlaybackAction( sSignalSourceID, IVAInterface::VA_PLAYBACK_ACTION_PLAY );
pVA->SetSignalSourceBufferLooping( sSignalSourceID, true );
const int iSoundSourceID = pVA->CreateSoundSource( "C++ Sound Source" );
pVA->SetSoundSourcePose( iSoundSourceID, VAVec3( -2.0f, 1.7f, -2.0f ), VAQuat( 0.0f, 0.0f, 0.0f, 1.0f ) );
pVA->SetSoundSourceSignalSource( iSoundSourceID, sSignalSourceID );
const int iHRIR = pVA->CreateDirectivityFromFile( "NeumannKU100.v17.ir.daff" );
const int iSoundReceiverID = pVA->CreateSoundReceiver( "C++ Listener" );
pVA->SetSoundReceiverPose( iSoundReceiverID, VAVec3( 0.0f, 1.7f, 0.0f ), VAQuat( 0.0f, 0.0f, 0.0f, 1.0f ) );
pVA->SetSoundReceiverDirectivity( iSoundReceiverID, iHRIR );
// do something that suspends the program ...
pVANet->Disconnect();
delete pVANet;
return 0;
}
cmake_minimum_required( VERSION 2.8 )
project( VANetTestClient )
list( APPEND CMAKE_MODULE_PATH "$ENV{VISTA_CMAKE_COMMON}" )
include( VistaCommon )
vista_use_package( VANet REQUIRED FIND_DEPENDENCIES )
vista_use_package( VistaCoreLibs REQUIRED COMPONENTS VistaBase FIND_DEPENDENCIES )
# compiler
if( ITA_VISTA_BUILD_STATIC )
add_definitions( -DVISTABASE_STATIC )
if( WIN32 )
set( VISTAINTERPROCCOMM_ADDITIONAL_DEPENDENCIES Ws2_32 )
endif( WIN32 )
endif( )
if( ITA_VA_BUILD_STATIC )
add_definitions( -DVABASE_STATIC -DVANET_STATIC )
endif( )
add_executable( VANetTestClient VANetClientTest.cpp )
target_link_libraries( VANetTestClient ${VISTA_USE_PACKAGE_LIBRARIES} )
vista_configure_app( VANetTestClient )
vista_install( VANetTestClient )
vista_create_default_info_file( VANetTestClient )
set_property( TARGET VANetTestClient PROPERTY FOLDER "VA/Tests/VANet" )
/*
* --------------------------------------------------------------------------------------------
*
* VVV VVV A
* VVV VVV AAA Virtual Acoustics
* VVV VVV AAA Real-time auralisation for virtual reality
* VVV VVV AAA
* VVVVVV AAA (c) Copyright Institut fr Technische Akustik (ITA)
* VVVV AAA RWTH Aachen (http://www.akustik.rwth-aachen.de)
* VVV VVV A Virtual Acoustics (VA) | http://www.virtualacoustics.org
* VVV VVV AAA Licensed under the Apache License, Version 2.0
* VVV VVV AAA
* VVV VVV AAA Copyright 2015-2017
* VVVVVV AAA Institute of Technical Acoustics (ITA)
* VVVV AAA RWTH Aachen University
*
* ---------------------------------------------------------------------------------
*
* Datei: VANetClientTest.cpp
*
* Zweck: Test des Netzwerk-Clients
*
* Autor(en): Dominik Rausch (rausch@vr.rwth-aachen.de)
* Frank Wefers (Frank.Wefers@akustik.rwth-aachen.de)
*
* ---------------------------------------------------------------------------------
* --------------------------------------------------------------------------------------------
*/
// $Id: VANetClientTest.cpp 4374 2015-12-08 12:46:19Z stienen $
#include <iostream>
#include <VACore.h>
#include <VAException.h>
#include <VANetClient.h>
#include <VAStruct.h>
#include <VA.h>
#include <VANet.h>
#include <VistaBase/VistaTimeUtils.h>
......
cmake_minimum_required( VERSION 2.8 )
if( NOT VANET_COMMON_BUILD )
project( VANetTest )
list( APPEND CMAKE_MODULE_PATH "$ENV{VISTA_CMAKE_COMMON}" )
include( VistaCommon )
project( VANetServerTest )
list( APPEND CMAKE_MODULE_PATH "$ENV{VISTA_CMAKE_COMMON}" )
include( VistaCommon )
endif()
vista_use_package( VABase REQUIRED FIND_DEPENDENCIES )
vista_use_package( VACore REQUIRED FIND_DEPENDENCIES )
add_definitions( -DVABASE_DLL -DVANET_DLL -DVACORE_DLL )
# compiler
if( ITA_VISTA_BUILD_STATIC )
add_definitions( -DVISTABASE_STATIC )
if( WIN32 )
set( VISTAINTERPROCCOMM_ADDITIONAL_DEPENDENCIES Ws2_32 )
endif( )
endif( )
if( ITA_VA_BUILD_STATIC )
add_definitions( -DVABASE_STATIC -DVACORE_STATIC -DVANET_STATIC )
endif( )
add_executable( VANetServerTest VANetServerTest.cpp )
target_link_libraries( VANetServerTest ${VISTA_USE_PACKAGE_LIBRARIES} )
......
/*
* --------------------------------------------------------------------------------------------
*
* VVV VVV A
* VVV VVV AAA Virtual Acoustics
* VVV VVV AAA Real-time auralisation for virtual reality
* VVV VVV AAA
* VVVVVV AAA (c) Copyright Institut fr Technische Akustik (ITA)
* VVVV AAA RWTH Aachen (http://www.akustik.rwth-aachen.de)
* VVV VVV A Virtual Acoustics (VA) | http://www.virtualacoustics.org
* VVV VVV AAA Licensed under the Apache License, Version 2.0
* VVV VVV AAA
* VVV VVV AAA Copyright 2015-2017
* VVVVVV AAA Institute of Technical Acoustics (ITA)
* VVVV AAA RWTH Aachen University
*
* ---------------------------------------------------------------------------------
*
* Datei: VANetServerTest.cpp
*
* Zweck: Test des Netzwerk-Servers
*
* Autor(en): Dominik Rausch (rausch@vr.rwth-aachen.de)
* Frank Wefers (Frank.Wefers@akustik.rwth-aachen.de)
*
* ---------------------------------------------------------------------------------
* --------------------------------------------------------------------------------------------
*/
// $Id: VANetServerTest.cpp 4003 2015-02-10 16:05:48Z stienen $
#include <iostream>
#include <VA.h>
#include <VACore.h>
#include <VACoreFactory.h>
#include <VANetServer.h>
#include <VANet.h>
#include <VistaBase/VistaTimeUtils.h>
......@@ -34,7 +24,7 @@ int main( int argc, char* argv[] )
IVANetServer* pServer = IVANetServer::Create();
pServer->SetCoreInstance( IVACore::CreateCoreInstance() );
std::string sServerIP = "0.0.0.0";
int iPort = 12340;
IVANetServer::tPortList liFreePorts;
......
cmake_minimum_required( VERSION 2.8 )
if( NOT VANET_COMMON_BUILD )
project( VANetTest )
list( APPEND CMAKE_MODULE_PATH "$ENV{VISTA_CMAKE_COMMON}" )
include( VistaCommon )
endif()
vista_use_package( VANet REQUIRED FIND_DEPENDENCIES )
vista_use_package( VistaCoreLibs REQUIRED COMPONENTS VistaBase FIND_DEPENDENCIES )
if( NOT DEFINED ITA_VISTA_BUILD_STATIC )
set( ITA_VISTA_BUILD_STATIC OFF CACHE BOOL "Build against static ViSTA libraries" )
endif( NOT DEFINED ITA_VISTA_BUILD_STATIC )
if( NOT DEFINED ITA_VA_BUILD_STATIC )
set( ITA_VA_BUILD_STATIC OFF CACHE BOOL "Link aginst static VA libs" )
endif( NOT DEFINED ITA_VA_BUILD_STATIC )
# compiler
if( ITA_VISTA_BUILD_STATIC )
add_definitions( -DVISTABASE_STATIC -DVISTAINTERPROCCOMM_STATIC -DVISTAASPECTS_STATIC -DVISTATOOLS_STATIC -DVISTAMATH_STATIC )
if( WIN32 )
set( VISTAINTERPROCCOMM_ADDITIONAL_DEPENDENCIES Ws2_32 )
endif( WIN32 )
endif( ITA_VISTA_BUILD_STATIC )
if( ITA_VA_BUILD_STATIC )
add_definitions( -DVABASE_STATIC -DVACORE_STATIC -DVANET_STATIC )
endif( ITA_VA_BUILD_STATIC )
add_executable( VANetClientTest VANetClientTest.cpp )
target_link_libraries( VANetClientTest ${VISTA_USE_PACKAGE_LIBRARIES} ${VISTAINTERPROCCOMM_ADDITIONAL_DEPENDENCIES} )
vista_configure_app( VANetClientTest )
vista_install( VANetClientTest )
vista_create_default_info_file( VANetClientTest )
set_property( TARGET VANetClientTest PROPERTY FOLDER "VA/Tests/VANet" )
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