mirror of
https://github.com/Artikash/Textractor.git
synced 2024-12-23 08:54:12 +08:00
update for vs 2019
This commit is contained in:
parent
958ce10327
commit
7964623ec8
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,6 +1,7 @@
|
||||
/Textractor*
|
||||
/build/
|
||||
/builds/
|
||||
/out/
|
||||
*.vs/
|
||||
*.vscode/
|
||||
*.user
|
||||
|
@ -25,6 +25,8 @@ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY $<1:${CMAKE_FINAL_OUTPUT_DIRECTORY}>)
|
||||
|
||||
include_directories(include)
|
||||
link_directories(${LIBDIR})
|
||||
file(GLOB LIBS ${LIBDIR}/*)
|
||||
file(COPY ${LIBS} DESTINATION ${CMAKE_FINAL_OUTPUT_DIRECTORY})
|
||||
|
||||
add_library(text text.cpp)
|
||||
target_compile_definitions(text PRIVATE ${TEXT_LANGUAGE})
|
||||
|
@ -22,10 +22,9 @@ foreach ($language in @{
|
||||
foreach ($arch in @("x86", "x64"))
|
||||
{
|
||||
cd $arch;
|
||||
$cmakeArch = if ($arch -eq "x86") {""} else {" Win64"};
|
||||
$vsArch = if ($arch -eq "x86") {"Win32"} else {"x64"};
|
||||
cmake -G "Visual Studio 15 2017$cmakeArch" -DVERSION="$version" -DTEXT_LANGUAGE="$($language.Key)" -DCMAKE_BUILD_TYPE="Release" ../..;
|
||||
&"C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\devenv" Textractor.sln /build "Release|$vsArch";
|
||||
$VS_arch = if ($arch -eq "x86") {"Win32"} else {"x64"};
|
||||
cmake -G "Visual Studio 16 2019" -A"$VS_arch" -DVERSION="$version" -DTEXT_LANGUAGE="$($language.Key)" -DCMAKE_BUILD_TYPE="Release" ../..;
|
||||
&"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\devenv" Textractor.sln /build "Release|$VS_arch";
|
||||
cd ..;
|
||||
mkdir -Force -Verbose "$folder/$arch";
|
||||
foreach ($file in @(
|
||||
|
Loading…
x
Reference in New Issue
Block a user