add Win32 API Unicode converter, other small changes

Qt Example: add file.close() (consistency between GTK example)
RagePhoto: saveFile() checks for good(), more data() -> c_str()
This commit is contained in:
Syping 2021-11-06 20:17:28 +01:00
parent 85ab850895
commit 05890541dc
6 changed files with 122 additions and 21 deletions

View file

@ -47,6 +47,17 @@ else()
message("-- Testing iconv - no")
endif()
message("-- Testing wincvt")
try_run(WINCVT_RUN WINCVT_COMPILE ${PROJECT_BINARY_DIR} ${PROJECT_SOURCE_DIR}/tests/WincvtTest.cpp)
if (WINCVT_COMPILE AND WINCVT_RUN EQUAL 0)
list(APPEND LIBRAGEPHOTO_DEFINES
WINCVT_COMPATIBLE
)
message("-- Testing wincvt - yes")
else()
message("-- Testing wincvt - no")
endif()
# RagePhoto Source files
set(RAGEPHOTO_HEADERS
src/RagePhoto.h