Adds cmake build support.
This commit is contained in:
18
build_cmake.bat
Normal file
18
build_cmake.bat
Normal file
@@ -0,0 +1,18 @@
|
||||
@echo off
|
||||
:: Helper script to build TinyTest with CMake on Windows
|
||||
|
||||
:: Create build directory if it doesn't exist
|
||||
if not exist build mkdir build
|
||||
cd build
|
||||
|
||||
:: Configure with CMake
|
||||
echo Configuring with CMake...
|
||||
cmake .. %*
|
||||
|
||||
:: Build
|
||||
echo Building...
|
||||
cmake --build . --config Release
|
||||
|
||||
echo Build complete!
|
||||
echo To run tests: cd build ^&^& ctest -C Release
|
||||
echo To install: cd build ^&^& cmake --install . --config Release
|
||||
Reference in New Issue
Block a user