Adding start scripts

parent a5bb297a
......@@ -8,6 +8,13 @@ vista_use_package( VABase REQUIRED FIND_DEPENDENCIES )
vista_use_package( VACore REQUIRED FIND_DEPENDENCIES )
vista_use_package( VANet REQUIRED FIND_DEPENDENCIES )
if( NOT ITA_VASERVER_INSTALL_WITH_DLLS )
set( ITA_VASERVER_INSTALL_WITH_DLLS ON CACHE BOOL "Install VAServer with depending DLLs (use this switch with care)" )
endif( )
if( NOT ITA_VASERVER_DEPLOY_WITH_COMMON_SCRIPTS )
set( ITA_VASERVER_DEPLOY_WITH_COMMON_SCRIPTS ON CACHE BOOL "Install VAServer starting scripts" )
endif( )
# compiler
if( ITA_CORE_LIBS_BUILD_STATIC )
......@@ -25,6 +32,7 @@ if( ITA_VISTA_BUILD_STATIC )
endif( )
endif( )
# linker
add_executable( VAServer VAServer.cpp )
target_link_libraries( VAServer ${VISTA_USE_PACKAGE_LIBRARIES} ${VISTAINTERPROCCOMM_ADDITIONAL_DEPENDENCIES} )
......@@ -44,6 +52,20 @@ vista_create_default_info_file( VAServer )
set_property( TARGET VAServer PROPERTY FOLDER "VA/Apps" )
# deploy
if( ITA_VASERVER_DEPLOY_WITH_COMMON_SCRIPTS )
if( WIN32 )
install( FILES "run_VAServer.bat" DESTINATION "." )
else( )
install( FILES "run_VAServer.sh" DESTINATION "." )
endif( )
endif( )
if( ITA_VA_INSTALL_WITH_DLLS OR ITA_VASERVER_INSTALL_WITH_DLLS )
vista_install_all_dlls( bin )
endif( )
# dev
if( MSVC )
......
@rem Example how to start the VA server (with configuration file)
bin\VAServer.exe localhost:12340 conf\VACore.ini
\ No newline at end of file
# Example how to start the VA server (with configuration file)
./bin/VAServer localhost:12340 ./conf/VACore.ini
\ No newline at end of file
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