vcpkg/ports/libunibreak/CMakeLists.txt

39 lines
632 B
CMake
Raw Normal View History

2017-09-03 08:09:07 +08:00
cmake_minimum_required(VERSION 3.8.0)
project(libunibreak)
set(libunibreak_srcs
src/linebreakdata.c
src/linebreakdef.c
src/linebreak.c
2017-09-03 08:09:07 +08:00
src/wordbreak.c
src/graphemebreak.c
src/unibreakbase.c
src/unibreakdef.c
)
include_directories(src)
add_library(libunibreak ${libunibreak_srcs})
install(
TARGETS libunibreak
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib
)
if(NOT DISABLE_INSTALL_HEADERS)
install(
FILES
src/linebreak.h
src/linebreakdef.h
src/wordbreak.h
src/wordbreakdef.h
src/unibreakbase.h
src/unibreakdef.h
2017-09-03 08:09:07 +08:00
DESTINATION include
)
endif()