ClickHouse/contrib/ulid-c-cmake/CMakeLists.txt

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
383 B
CMake
Raw Normal View History

2023-01-04 02:24:14 +00:00
option (ENABLE_ULID "Enable ulid" ${ENABLE_LIBRARIES})
if (NOT ENABLE_ULID)
message(STATUS "Not using ulid")
return()
endif()
set (LIBRARY_DIR "${ClickHouse_SOURCE_DIR}/contrib/ulid-c")
set (SRCS
2023-02-14 16:45:46 +00:00
"${LIBRARY_DIR}/src/ulid.c"
2023-01-04 02:24:14 +00:00
)
add_library(_ulid ${SRCS})
target_include_directories(_ulid SYSTEM PUBLIC "${LIBRARY_DIR}/include")
add_library(ch_contrib::ulid ALIAS _ulid)