CMake: Fix building samples with MinGW64

Do not enable debugrpt and flash examples.
Define UNICODE when building on Windows. This allows the sdk_exe example to build, because it includes the windows headers directly.
This commit is contained in:
Maarten Bent
2018-01-20 17:30:25 +01:00
parent 6d12732f52
commit 5ca19288f6
2 changed files with 9 additions and 2 deletions

View File

@@ -166,6 +166,9 @@ function(wx_set_target_properties target_name is_base)
endif()
if(wxUSE_UNICODE)
if(WIN32)
target_compile_definitions(${target_name} PUBLIC UNICODE)
endif()
target_compile_definitions(${target_name} PUBLIC _UNICODE)
endif()