1# Copyright (C) 2016 and later: Unicode, Inc. and others. 2# License & terms of use: http://www.unicode.org/copyright.html 3# Copyright (C) 2010-2014, International Business Machines 4# Corporation and others. All Rights Reserved. 5# 6# created on: 2010jun03 7# created by: Markus W. Scherer 8cmake_minimum_required(VERSION 2.6) 9project(ICU_UNI_TOOLS) 10set(CMAKE_CXX_FLAGS "-std=c++11 -fsanitize=bounds") 11set(CMAKE_LD_FLAGS "-fsanitize=bounds") 12# This requires an icudefs.txt file with contents like the following: 13# Location (--prefix) of where ICU was installed. 14#set(ICU_INST_DIR /usr/local/google/home/mscherer/svn.icu/trunk/inst/icu4c) 15# Location of the ICU4C source tree. 16#set(ICU4C_SRC_DIR /usr/local/google/home/mscherer/svn.icu/trunk/src/icu4c) 17set(CMAKE_BUILD_TYPE Debug) 18include(icudefs.txt) 19include_directories( 20 ${ICU_INST_DIR}/include 21 ${ICU4C_SRC_DIR}/source/common 22 ${ICU4C_SRC_DIR}/source/i18n 23 ${ICU4C_SRC_DIR}/source/tools/toolutil) 24link_directories(${ICU_INST_DIR}/lib) 25add_subdirectory(genprops) 26add_subdirectory(genuca) 27add_subdirectory(genuts46) 28 29