This extends and refactors the original CMake script to make it nicer. The structure of it is loosely based on that used in bs::framework project. - Separate the Main SDK build definitions to its own CMakeLists.txt. Source file lists for each project were also moved to file CMakeSources.cmake, cataloged based on a folder they're in and the filter definitions for VS were added. - During build the executable/library artifacts are now stored in <BUILD_DIR>/<BIN_OR_LIB>/<ARCHITECTURE>/<BUILD_TYPE>. The scripts were modified to reflect that change. - Added most of the build flags from the original VS project with some new one. - Added some properties to explicitly configure the build environment. - Add ability to install the libraries for distribution. - Other small renaming, cleanups and things that I've forgotten.
20 lines
605 B
Batchfile
20 lines
605 B
Batchfile
@echo off
|
|
|
|
REM Test the vectorwar sample by starting 2 clients connected
|
|
REM back to each other.
|
|
REM
|
|
REM Controls: Arrows to move
|
|
REM Press 'D' to fire
|
|
REM Press 'P' to show performance monitor
|
|
REM Shift to strafe
|
|
|
|
pushd ..\build\bin\x64\Release
|
|
del *.log
|
|
|
|
start VectorWar.exe 7000 4 local 127.0.0.1:7001 127.0.0.1:7002 127.0.0.1:7003
|
|
start VectorWar.exe 7001 4 127.0.0.1:7000 local 127.0.0.1:7002 127.0.0.1:7003
|
|
start VectorWar.exe 7002 4 127.0.0.1:7000 127.0.0.1:7001 local 127.0.0.1:7003
|
|
start VectorWar.exe 7003 4 127.0.0.1:7000 127.0.0.1:7001 127.0.0.1:7002 local
|
|
|
|
popd
|