diff options
author | Gulliver <[email protected]> | 2014-09-10 14:08:44 +0200 |
---|---|---|
committer | Gulliver <[email protected]> | 2014-09-10 14:08:44 +0200 |
commit | 358925ec028bcdb312616ffebf427eda595896cd (patch) | |
tree | 142ca7a96eef0f3bc95a3d165292563a55b9d852 /release_it.bat | |
parent | 81de8a753da76566a52a1c8dd80e4d3784e78567 (diff) |
added initial version of cmake build-files
Diffstat (limited to 'release_it.bat')
-rw-r--r-- | release_it.bat | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/release_it.bat b/release_it.bat new file mode 100644 index 0000000..3ab2837 --- /dev/null +++ b/release_it.bat @@ -0,0 +1,31 @@ +
+set PATH=%PATH%;C:\Program Files (x86)\CMake 2.8\bin
+
+set CMAKE_BUILDDIR=build\vc
+set STARTDIR=%CD%
+
+@if NOT "%VS100COMNTOOLS%"=="" (call "%VS100COMNTOOLS%\vsvars32.bat" & goto VS_END)
+@if NOT "%VS90COMNTOOLS%"=="" (call "%VS90COMNTOOLS%\vsvars32.bat" & goto VS_END)
+@if NOT "%VS80COMNTOOLS%"=="" (call "%VS80COMNTOOLS%\vsvars32.bat" & goto VS_END)
+@if NOT "%VS71COMNTOOLS%"=="" (call "%VS71COMNTOOLS%\vsvars32.bat" & goto VS_END)
+
+:VS_END
+
+cd %STARTDIR%
+
+set CMAKE_BUILDDIR=build\vc
+mkdir %CMAKE_BUILDDIR%
+
+cd %CMAKE_BUILDDIR%
+
+del CMakeCache.txt
+
+cmake -D STMD_MSVC_MT:BOOL=OFF %STARTDIR%
+rem -D stmd_DOCS:bool=ON -D stmd_WITH_TESTS:bool=ON -DCXXTEST_INCLUDE_DIR=%STARTDIR%\3rdparty\cxxtest -DCXXTEST_PYTHON_TESTGEN_EXECUTABLE=%STARTDIR%\3rdparty\cxxtest\bin\cxxtestgen
+cpack --config CPackSourceConfig.cmake
+cd %STARTDIR%
+cmake --build %CMAKE_BUILDDIR% --target all --target test --target package
+rem --target package_source
+
+
+pause
|