Blame winpr/libwinpr/crt/CMakeLists.txt

Packit Service fa4841
# WinPR: Windows Portable Runtime
Packit Service fa4841
# libwinpr-crt cmake build script
Packit Service fa4841
#
Packit Service fa4841
# Copyright 2012 Marc-Andre Moreau <marcandre.moreau@gmail.com>
Packit Service fa4841
#
Packit Service fa4841
# Licensed under the Apache License, Version 2.0 (the "License");
Packit Service fa4841
# you may not use this file except in compliance with the License.
Packit Service fa4841
# You may obtain a copy of the License at
Packit Service fa4841
#
Packit Service fa4841
#     http://www.apache.org/licenses/LICENSE-2.0
Packit Service fa4841
#
Packit Service fa4841
# Unless required by applicable law or agreed to in writing, software
Packit Service fa4841
# distributed under the License is distributed on an "AS IS" BASIS,
Packit Service fa4841
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
Packit Service fa4841
# See the License for the specific language governing permissions and
Packit Service fa4841
# limitations under the License.
Packit Service fa4841
Packit Service fa4841
set (CRT_FILES alignment.c
Packit Service fa4841
	conversion.c
Packit Service fa4841
	buffer.c
Packit Service fa4841
	memory.c
Packit Service fa4841
	unicode.c
Packit Service fa4841
	string.c)
Packit Service fa4841
Packit Service fa4841
if (NOT WITH_ICU)
Packit Service fa4841
	set (CRT_FILES ${CRT_FILES}
Packit Service fa4841
		utf.c
Packit Service fa4841
		utf.h)
Packit Service fa4841
endif(NOT WITH_ICU)
Packit Service fa4841
Packit Service fa4841
if (WITH_ICU)
Packit Service fa4841
	find_package(ICU REQUIRED i18n uc io)
Packit Service fa4841
	include_directories(${ICU_INCLUDE_DIRS})
Packit Service bb5c11
	winpr_library_add(${ICU_LIBRARIES})
Packit Service fa4841
endif (WITH_ICU)
Packit Service fa4841
Packit Service fa4841
winpr_module_add(${CRT_FILES})
Packit Service fa4841
Packit Service fa4841
if(BUILD_TESTING)
Packit Service fa4841
	add_subdirectory(test)
Packit Service fa4841
endif()