12e5b6d6dSopenharmony_ci# Copyright (C) 2016 and later: Unicode, Inc. and others.
22e5b6d6dSopenharmony_ci# License & terms of use: http://www.unicode.org/copyright.html
32e5b6d6dSopenharmony_ci# Copyright (C) 2010-2014, International Business Machines
42e5b6d6dSopenharmony_ci# Corporation and others.  All Rights Reserved.
52e5b6d6dSopenharmony_ci#
62e5b6d6dSopenharmony_ci# created on: 2010jun03
72e5b6d6dSopenharmony_ci# created by: Markus W. Scherer
82e5b6d6dSopenharmony_cicmake_minimum_required(VERSION 2.6)
92e5b6d6dSopenharmony_ciproject(ICU_UNI_TOOLS)
102e5b6d6dSopenharmony_ciset(CMAKE_CXX_FLAGS "-std=c++11 -fsanitize=bounds")
112e5b6d6dSopenharmony_ciset(CMAKE_LD_FLAGS "-fsanitize=bounds")
122e5b6d6dSopenharmony_ci# This requires an icudefs.txt file with contents like the following:
132e5b6d6dSopenharmony_ci# Location (--prefix) of where ICU was installed.
142e5b6d6dSopenharmony_ci#set(ICU_INST_DIR /usr/local/google/home/mscherer/svn.icu/trunk/inst/icu4c)
152e5b6d6dSopenharmony_ci# Location of the ICU4C source tree.
162e5b6d6dSopenharmony_ci#set(ICU4C_SRC_DIR /usr/local/google/home/mscherer/svn.icu/trunk/src/icu4c)
172e5b6d6dSopenharmony_ciset(CMAKE_BUILD_TYPE Debug)
182e5b6d6dSopenharmony_ciinclude(icudefs.txt)
192e5b6d6dSopenharmony_ciinclude_directories(
202e5b6d6dSopenharmony_ci  ${ICU_INST_DIR}/include
212e5b6d6dSopenharmony_ci  ${ICU4C_SRC_DIR}/source/common
222e5b6d6dSopenharmony_ci  ${ICU4C_SRC_DIR}/source/i18n
232e5b6d6dSopenharmony_ci  ${ICU4C_SRC_DIR}/source/tools/toolutil)
242e5b6d6dSopenharmony_cilink_directories(${ICU_INST_DIR}/lib)
252e5b6d6dSopenharmony_ciadd_subdirectory(genprops)
262e5b6d6dSopenharmony_ciadd_subdirectory(genuca)
272e5b6d6dSopenharmony_ciadd_subdirectory(genuts46)
282e5b6d6dSopenharmony_ci
29