CMake: improved Unicode tests
unicode.cmake: avoid errors when spaces exists CodecvtTest.cpp: add Japanese, Korean, Russian and Taiwanese tests WincvtTest.cpp: add Japanese, Korean, Russian and Taiwanese tests
This commit is contained in:
parent
1d522d0667
commit
91404a5f77
3 changed files with 364 additions and 16 deletions
|
@ -26,7 +26,7 @@ if (RAGEPHOTO_UNICODE)
|
|||
else()
|
||||
# RagePhoto Unicode functionality tests
|
||||
message("-- Testing codecvt")
|
||||
try_run(CODECVT_RUN CODECVT_COMPILE ${PROJECT_BINARY_DIR} ${PROJECT_SOURCE_DIR}/tests/CodecvtTest.cpp)
|
||||
try_run(CODECVT_RUN CODECVT_COMPILE "${PROJECT_BINARY_DIR}" "${PROJECT_SOURCE_DIR}/tests/CodecvtTest.cpp")
|
||||
if (CODECVT_COMPILE AND CODECVT_RUN EQUAL 0)
|
||||
set(CODECVT_COMPAT TRUE)
|
||||
message("-- Testing codecvt - yes")
|
||||
|
@ -35,7 +35,7 @@ else()
|
|||
endif()
|
||||
|
||||
message("-- Testing iconv")
|
||||
try_run(ICONV_RUN ICONV_COMPILE ${PROJECT_BINARY_DIR} ${PROJECT_SOURCE_DIR}/tests/IconvTest.cpp)
|
||||
try_run(ICONV_RUN ICONV_COMPILE "${PROJECT_BINARY_DIR}" "${PROJECT_SOURCE_DIR}/tests/IconvTest.cpp")
|
||||
if (ICONV_COMPILE AND ICONV_RUN EQUAL 0)
|
||||
set(ICONV_COMPAT TRUE)
|
||||
message("-- Testing iconv - yes")
|
||||
|
@ -45,7 +45,7 @@ else()
|
|||
|
||||
if (WIN32)
|
||||
message("-- Testing wincvt")
|
||||
try_run(WINCVT_RUN WINCVT_COMPILE ${PROJECT_BINARY_DIR} ${PROJECT_SOURCE_DIR}/tests/WincvtTest.cpp)
|
||||
try_run(WINCVT_RUN WINCVT_COMPILE "${PROJECT_BINARY_DIR}" "${PROJECT_SOURCE_DIR}/tests/WincvtTest.cpp")
|
||||
if (WINCVT_COMPILE AND WINCVT_RUN EQUAL 0)
|
||||
set(WINCVT_COMPAT TRUE)
|
||||
message("-- Testing wincvt - yes")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue