2017-09-02 17:09:07 -07:00
|
|
|
cmake_minimum_required(VERSION 3.8.0)
|
|
|
|
|
|
|
|
project(libunibreak)
|
|
|
|
|
|
|
|
set(libunibreak_srcs
|
2022-04-29 12:33:44 -07:00
|
|
|
src/linebreak.c
|
2017-09-02 17:09:07 -07:00
|
|
|
src/linebreakdata.c
|
|
|
|
src/linebreakdef.c
|
|
|
|
src/wordbreak.c
|
2022-04-29 12:33:44 -07:00
|
|
|
src/wordbreakdata.c
|
2017-09-02 17:09:07 -07:00
|
|
|
src/graphemebreak.c
|
2022-04-29 12:33:44 -07:00
|
|
|
src/graphemebreakdata.c
|
|
|
|
src/emojidef.c
|
2024-04-01 21:51:51 +00:00
|
|
|
src/eastasianwidthdef.c
|
|
|
|
src/eastasianwidthdata.c
|
2017-09-02 17:09:07 -07:00
|
|
|
src/unibreakbase.c
|
|
|
|
src/unibreakdef.c
|
|
|
|
)
|
|
|
|
|
|
|
|
include_directories(src)
|
|
|
|
|
2022-04-29 12:33:44 -07:00
|
|
|
add_library(unibreak ${libunibreak_srcs})
|
2017-09-02 17:09:07 -07:00
|
|
|
|
|
|
|
install(
|
2022-04-29 12:33:44 -07:00
|
|
|
TARGETS unibreak
|
2017-09-02 17:09:07 -07:00
|
|
|
RUNTIME DESTINATION bin
|
|
|
|
LIBRARY DESTINATION lib
|
|
|
|
ARCHIVE DESTINATION lib
|
|
|
|
)
|
|
|
|
|
|
|
|
if(NOT DISABLE_INSTALL_HEADERS)
|
|
|
|
install(
|
|
|
|
FILES
|
2022-04-29 12:33:44 -07:00
|
|
|
src/emojidef.h
|
2024-04-01 21:51:51 +00:00
|
|
|
src/eastasianwidthdef.h
|
|
|
|
src/unibreakbase.h
|
|
|
|
src/unibreakdef.h
|
2022-04-29 12:33:44 -07:00
|
|
|
src/graphemebreak.h
|
|
|
|
src/graphemebreakdef.h
|
2017-09-02 17:09:07 -07:00
|
|
|
src/linebreak.h
|
|
|
|
src/linebreakdef.h
|
2022-04-29 12:33:44 -07:00
|
|
|
src/test_skips.h
|
2019-02-15 14:07:08 -08:00
|
|
|
src/unibreakbase.h
|
|
|
|
src/unibreakdef.h
|
2022-04-29 12:33:44 -07:00
|
|
|
src/wordbreak.h
|
|
|
|
src/wordbreakdef.h
|
2017-09-02 17:09:07 -07:00
|
|
|
DESTINATION include
|
|
|
|
)
|
|
|
|
endif()
|