mirror of
https://github.com/yanyiwu/cppjieba.git
synced 2025-07-18 00:00:12 +08:00
Merge pull request #63 from qinwf/windows-appveyor
add Windows CI with MSVC
This commit is contained in:
commit
4d8d793da5
32
appveyor.yml
Normal file
32
appveyor.yml
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
os: Visual Studio 2015
|
||||||
|
|
||||||
|
platform: x64
|
||||||
|
|
||||||
|
# clone directory
|
||||||
|
clone_folder: c:\projects\cppjieba
|
||||||
|
|
||||||
|
# scripts to run before build
|
||||||
|
before_build:
|
||||||
|
- echo Running cmake...
|
||||||
|
- cd c:\projects\cppjieba
|
||||||
|
- cmake .
|
||||||
|
|
||||||
|
build:
|
||||||
|
project: ALL_BUILD.vcxproj # path to Visual Studio solution or project
|
||||||
|
|
||||||
|
# scripts to run after build
|
||||||
|
after_build:
|
||||||
|
- cd Debug
|
||||||
|
- demo.exe
|
||||||
|
- load_test.exe
|
||||||
|
- cd ..
|
||||||
|
- COPY .\test\Debug\test.run.exe .\test\test.run.exe
|
||||||
|
- cd test
|
||||||
|
- test.run.exe
|
||||||
|
- cd ..
|
||||||
|
- 7z a c:\projects\all.zip * -tzip
|
||||||
|
- cd c:\projects
|
||||||
|
|
||||||
|
artifacts:
|
||||||
|
- path: all.zip
|
||||||
|
name: all.zip
|
4
deps/gtest/CMakeLists.txt
vendored
4
deps/gtest/CMakeLists.txt
vendored
@ -1,3 +1,5 @@
|
|||||||
INCLUDE_DIRECTORIES(./ include)
|
INCLUDE_DIRECTORIES(./ include)
|
||||||
ADD_LIBRARY(gtest STATIC src/gtest-all.cc)
|
ADD_LIBRARY(gtest STATIC src/gtest-all.cc)
|
||||||
TARGET_LINK_LIBRARIES(gtest pthread)
|
if(NOT MSVC)
|
||||||
|
TARGET_LINK_LIBRARIES(gtest pthread)
|
||||||
|
endif()
|
||||||
|
@ -15,5 +15,9 @@ ADD_EXECUTABLE(test.run
|
|||||||
pre_filter_test.cpp
|
pre_filter_test.cpp
|
||||||
unicode_test.cpp
|
unicode_test.cpp
|
||||||
)
|
)
|
||||||
TARGET_LINK_LIBRARIES(test.run gtest pthread)
|
|
||||||
|
|
||||||
|
if(MSVC)
|
||||||
|
TARGET_LINK_LIBRARIES(test.run gtest)
|
||||||
|
else()
|
||||||
|
TARGET_LINK_LIBRARIES(test.run gtest pthread)
|
||||||
|
endif()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user