Mercurial > hg > orthanc
comparison Resources/CMake/OrthancFrameworkConfiguration.cmake @ 3228:4b9cfd92d1ae
preparing for libicu
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 14 Feb 2019 19:41:09 +0100 |
parents | ef4d86d05503 |
children | 32596919d729 |
comparison
equal
deleted
inserted
replaced
3227:53bb1f4b3844 | 3228:4b9cfd92d1ae |
---|---|
92 unset(USE_SYSTEM_PUGIXML CACHE) | 92 unset(USE_SYSTEM_PUGIXML CACHE) |
93 add_definitions(-DORTHANC_ENABLE_PUGIXML=0) | 93 add_definitions(-DORTHANC_ENABLE_PUGIXML=0) |
94 endif() | 94 endif() |
95 | 95 |
96 if (NOT ENABLE_LOCALE) | 96 if (NOT ENABLE_LOCALE) |
97 unset(USE_SYSTEM_LIBICONV CACHE) | 97 unset(BOOST_LOCALE_BACKEND CACHE) |
98 add_definitions(-DORTHANC_ENABLE_LOCALE=0) | 98 add_definitions(-DORTHANC_ENABLE_LOCALE=0) |
99 endif() | 99 endif() |
100 | 100 |
101 if (NOT ENABLE_GOOGLE_TEST) | 101 if (NOT ENABLE_GOOGLE_TEST) |
102 unset(USE_SYSTEM_GOOGLE_TEST CACHE) | 102 unset(USE_SYSTEM_GOOGLE_TEST CACHE) |
376 add_definitions(-DORTHANC_ENABLE_PUGIXML=1) | 376 add_definitions(-DORTHANC_ENABLE_PUGIXML=1) |
377 endif() | 377 endif() |
378 | 378 |
379 | 379 |
380 ## | 380 ## |
381 ## Locale support: libiconv | 381 ## Locale support |
382 ## | 382 ## |
383 | 383 |
384 if (ENABLE_LOCALE) | 384 if (ENABLE_LOCALE) |
385 if (CMAKE_SYSTEM_NAME STREQUAL "Emscripten") | 385 if (CMAKE_SYSTEM_NAME STREQUAL "Emscripten") |
386 # In WebAssembly or asm.js, we rely on the version of iconv that | 386 # In WebAssembly or asm.js, we rely on the version of iconv that |
387 # is shipped with the stdlib | 387 # is shipped with the stdlib |
388 unset(USE_BOOST_ICONV CACHE) | 388 unset(BOOST_LOCALE_BACKEND CACHE) |
389 else() | 389 else() |
390 include(${CMAKE_CURRENT_LIST_DIR}/LibIconvConfiguration.cmake) | 390 if (BOOST_LOCALE_BACKEND STREQUAL "iconv") |
391 include(${CMAKE_CURRENT_LIST_DIR}/LibIconvConfiguration.cmake) | |
392 elseif (BOOST_LOCALE_BACKEND STREQUAL "icu") | |
393 include(${CMAKE_CURRENT_LIST_DIR}/LibIcuConfiguration.cmake) | |
394 elseif (BOOST_LOCALE_BACKEND STREQUAL "wconv") | |
395 message("Using Microsoft Window's wconv") | |
396 else() | |
397 message(FATAL_ERROR "Invalid value for BOOST_LOCALE_BACKEND: ${BOOST_LOCALE_BACKEND}") | |
398 endif() | |
391 endif() | 399 endif() |
392 | 400 |
393 add_definitions(-DORTHANC_ENABLE_LOCALE=1) | 401 add_definitions(-DORTHANC_ENABLE_LOCALE=1) |
394 endif() | 402 endif() |
395 | 403 |
608 ${BOOST_SOURCES} | 616 ${BOOST_SOURCES} |
609 ${CIVETWEB_SOURCES} | 617 ${CIVETWEB_SOURCES} |
610 ${CURL_SOURCES} | 618 ${CURL_SOURCES} |
611 ${JSONCPP_SOURCES} | 619 ${JSONCPP_SOURCES} |
612 ${LIBICONV_SOURCES} | 620 ${LIBICONV_SOURCES} |
621 ${LIBICU_SOURCES} | |
613 ${LIBJPEG_SOURCES} | 622 ${LIBJPEG_SOURCES} |
614 ${LIBP11_SOURCES} | 623 ${LIBP11_SOURCES} |
615 ${LIBPNG_SOURCES} | 624 ${LIBPNG_SOURCES} |
616 ${LUA_SOURCES} | 625 ${LUA_SOURCES} |
617 ${MONGOOSE_SOURCES} | 626 ${MONGOOSE_SOURCES} |