Skip to content

Commit

Permalink
Add ability to build meta-utf as a static library.
Browse files Browse the repository at this point in the history
This is useful for building metapy, and basically for no other reason.
  • Loading branch information
skystrife committed Feb 13, 2017
1 parent 7cbef28 commit 21f7f9e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/utf/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@ project(meta-utf)

add_subdirectory(tools)

add_library(meta-utf SHARED segmenter.cpp transformer.cpp utf.cpp)
if (META_STATIC_UTF)
add_library(meta-utf STATIC segmenter.cpp transformer.cpp utf.cpp)
else()
add_library(meta-utf SHARED segmenter.cpp transformer.cpp utf.cpp)
endif()
target_link_libraries(meta-utf PUBLIC meta-definitions)
target_link_libraries(meta-utf PRIVATE ${ICU_LIBRARIES})
target_include_directories(meta-utf PRIVATE SYSTEM ${ICU_INCLUDE_DIRS})
Expand Down

0 comments on commit 21f7f9e

Please sign in to comment.