2012-05-06 06:09:08 +04:00
|
|
|
# WinPR: Windows Portable Runtime
|
|
|
|
# libwinpr-crt cmake build script
|
|
|
|
#
|
2012-09-20 05:42:46 +04:00
|
|
|
# Copyright 2012 Marc-Andre Moreau <marcandre.moreau@gmail.com>
|
2012-05-06 06:09:08 +04:00
|
|
|
#
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
# You may obtain a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
|
|
|
|
2017-07-26 13:58:34 +03:00
|
|
|
set (CRT_FILES alignment.c
|
2012-10-28 04:25:11 +04:00
|
|
|
conversion.c
|
2012-10-05 22:45:54 +04:00
|
|
|
buffer.c
|
2012-05-06 06:09:08 +04:00
|
|
|
memory.c
|
2012-12-17 01:21:48 +04:00
|
|
|
unicode.c
|
2017-07-26 13:58:34 +03:00
|
|
|
string.c)
|
|
|
|
|
|
|
|
if (NOT WITH_ICU)
|
|
|
|
set (CRT_FILES ${CRT_FILES}
|
|
|
|
utf.c
|
|
|
|
utf.h)
|
|
|
|
endif(NOT WITH_ICU)
|
|
|
|
|
|
|
|
if (WITH_ICU)
|
|
|
|
find_package(ICU REQUIRED i18n uc io)
|
2022-02-17 11:11:50 +03:00
|
|
|
winpr_include_directory_add(${ICU_INCLUDE_DIRS})
|
2019-03-15 13:36:24 +03:00
|
|
|
winpr_library_add_private(${ICU_LIBRARIES})
|
2017-07-26 13:58:34 +03:00
|
|
|
endif (WITH_ICU)
|
|
|
|
|
|
|
|
winpr_module_add(${CRT_FILES})
|
2012-05-06 06:09:08 +04:00
|
|
|
|
2012-10-13 17:50:02 +04:00
|
|
|
if(BUILD_TESTING)
|
2012-10-02 03:10:00 +04:00
|
|
|
add_subdirectory(test)
|
|
|
|
endif()
|