2020-04-08 03:40:25 +08:00
|
|
|
#
|
2020-04-10 08:31:35 +08:00
|
|
|
# Provides the simdjson headers.
|
|
|
|
#
|
|
|
|
# target_link_libraries(my-project simdjson-headers) grants the headers. It does not provide the
|
|
|
|
# source, libraries or any compiler flags.
|
2020-04-08 03:40:25 +08:00
|
|
|
#
|
|
|
|
add_library(simdjson-headers INTERFACE)
|
2020-04-10 08:31:35 +08:00
|
|
|
target_compile_features(simdjson-headers INTERFACE cxx_std_11) # headers require at least C++11
|
2020-04-30 04:47:27 +08:00
|
|
|
target_include_directories(simdjson-headers INTERFACE
|
|
|
|
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
|
2020-04-30 07:06:19 +08:00
|
|
|
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCDIR}>)
|
2020-04-08 03:40:25 +08:00
|
|
|
|
2020-04-30 07:06:19 +08:00
|
|
|
install(TARGETS simdjson-headers EXPORT simdjson-config INCLUDES DESTINATION include)
|