Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/jarro2783/cxxopts.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJarryd Beck <jarrydb@cse.unsw.edu.au>2014-10-27 14:06:24 +0300
committerJarryd Beck <jarrydb@cse.unsw.edu.au>2014-10-27 14:06:24 +0300
commit8d7c4ea43e25a3187662506040b826a167e7110c (patch)
treeab818f4eb04f84f4e2f91c7b20ad0f8b2c1c1582 /CMakeLists.txt
parent8234766bcadabd32fb548a4b2a4c5a18bff8a864 (diff)
unicode configuration
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt15
1 files changed, 13 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index e785ba4..34e6bed 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -23,9 +23,20 @@ project(cxxopts)
set(VERSION "0.0.1")
-find_package(PkgConfig)
+set(CXXOPTS_LINKER_LIBRARIES "")
-pkg_check_modules(ICU REQUIRED icu-uc)
+set(CXXOPTS_USE_UNICODE_HELP FALSE CACHE BOOL "Use ICU Unicode library")
+
+if(CXXOPTS_USE_UNICODE_HELP)
+
+ find_package(PkgConfig)
+
+ pkg_check_modules(ICU REQUIRED icu-uc)
+
+ set(CXXOPTS_LINKER_LIBRARIES "${ICU_LIBRARIES}")
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DCXXOPTS_USE_UNICODE")
+
+endif()
add_subdirectory(src)