- build the code with source and execution charset set to utf-8 (required for unicode chars in the source code) - Example/culebra/linenoise.hpp requires being build with UNICODE on windows The WIN32 part of that code actually is written against wchar support only (e.g. wsprintf, wcstol, ...); but some pieces requires the UNICODE def being set explicitely (e.g. GetEnvironmentVariable). - don't build lint and language subfolders on windows at all (for now)pull/21/head
parent
e562f51f63
commit
f98f8697c6
@ -0,0 +1,16 @@ |
||||
clone_depth: 5 |
||||
|
||||
environment: |
||||
matrix: |
||||
- CMAKE_GENERATOR: "Visual Studio 14 2015" |
||||
CONFIGURATION: Release |
||||
- CMAKE_GENERATOR: "Visual Studio 14 2015 Win64" |
||||
CONFIGURATION: Release |
||||
|
||||
build_script: |
||||
- mkdir build && cd build |
||||
- cmake .. -Wno-dev -G"%CMAKE_GENERATOR%" |
||||
- cmake --build . --config %CONFIGURATION% |
||||
|
||||
test_script: |
||||
- ctest -C %CONFIGURATION% -V |
@ -1,4 +1,11 @@ |
||||
cmake_minimum_required(VERSION 2.8) |
||||
include_directories(../..) |
||||
|
||||
if(MSVC) |
||||
add_compile_options(${cxx11_options} /W3) |
||||
add_definitions(-DUNICODE) |
||||
else() |
||||
add_compile_options(${cxx11_options}) |
||||
endif() |
||||
|
||||
add_executable(culebra main.cc) |
||||
|
@ -1,4 +1,10 @@ |
||||
cmake_minimum_required(VERSION 2.8) |
||||
include_directories(../..) |
||||
|
||||
if(MSVC) |
||||
add_compile_options(${cxx11_options} /W0) |
||||
else() |
||||
add_compile_options(${cxx11_options}) |
||||
endif() |
||||
|
||||
add_executable(pl0 pl0.cc) |
||||
|
@ -1,4 +1,10 @@ |
||||
cmake_minimum_required(VERSION 2.8) |
||||
include_directories(..) |
||||
|
||||
if(MSVC) |
||||
add_compile_options(${cxx11_options} /W3) |
||||
else() |
||||
add_compile_options(${cxx11_options}) |
||||
endif() |
||||
|
||||
add_executable(peglint peglint.cc server.cc) |
||||
|
Loading…
Reference in new issue