mirror of
https://github.com/yhirose/cpp-peglib.git
synced 2024-12-23 04:15:31 +00:00
f98f8697c6
- 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)
18 lines
400 B
CMake
18 lines
400 B
CMake
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(calc calc.cc)
|
|
target_link_libraries(calc ${add_link_deps})
|
|
|
|
add_executable(calc2 calc2.cc)
|
|
target_link_libraries(calc2 ${add_link_deps})
|
|
|
|
add_executable(calc3 calc3.cc)
|
|
target_link_libraries(calc3 ${add_link_deps})
|