Skip to content

Commit

Permalink
Make tev buildable on Windows using Ninja
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom94 committed Mar 10, 2020
1 parent f514444 commit 8a6a4b0
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
2 changes: 1 addition & 1 deletion dependencies/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ if (WIN32)
set_property(TARGET zlibstatic PROPERTY FOLDER "dependencies")

set(ZLIB_INCLUDE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/zlib" CACHE PATH " " FORCE)
set(ZLIB_LIBRARY "${CMAKE_CURRENT_BINARY_DIR}/zlib/$<CONFIGURATION>/zlibstatic.lib" CACHE FILEPATH " " FORCE)
set(ZLIB_LIBRARY zlibstatic)

include_directories(${ZLIB_INCLUDE_DIR} "${CMAKE_CURRENT_BINARY_DIR}/zlib")
endif()
Expand Down
21 changes: 21 additions & 0 deletions scripts/create-exe-ninja.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
@echo off

set cwd=%cd%
cd /D %~dp0

set DevCmd="C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat"
set BuildDir64="build-exe-64"

call %DevCmd%

echo Building tev with ninja...
mkdir %BuildDir64%
cd %BuildDir64%
cmake -DTEV_DEPLOY=1 -DCMAKE_BUILD_TYPE=Release -GNinja ..\..
ninja
move "tev.exe" "..\..\tev.exe"
cd ..

echo Returning to original directory.
cd /D %cwd%
pause

0 comments on commit 8a6a4b0

Please sign in to comment.