vcpkg/ports/libunibreak/CMakeLists.txt

45 lines
781 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/linebreak.c
2017-09-03 08:09:07 +08:00
src/linebreakdata.c
src/linebreakdef.c
src/wordbreak.c
src/wordbreakdata.c
2017-09-03 08:09:07 +08:00
src/graphemebreak.c
src/graphemebreakdata.c
src/emojidef.c
2017-09-03 08:09:07 +08:00
src/unibreakbase.c
src/unibreakdef.c
)
include_directories(src)
add_library(unibreak ${libunibreak_srcs})
2017-09-03 08:09:07 +08:00
install(
TARGETS unibreak
2017-09-03 08:09:07 +08:00
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib
)
if(NOT DISABLE_INSTALL_HEADERS)
install(
FILES
src/emojidef.h
src/graphemebreak.h
src/graphemebreakdef.h
2017-09-03 08:09:07 +08:00
src/linebreak.h
src/linebreakdef.h
src/test_skips.h
src/unibreakbase.h
src/unibreakdef.h
src/wordbreak.h
src/wordbreakdef.h
2017-09-03 08:09:07 +08:00
DESTINATION include
)
endif()