cmake: List spdlog's content in IDEs

This is a usual CMake way of ensuring that IDEs have a way of showing
all source files which comprise this header-only library. It works in
the Qt Creator, for example.
pull/319/head
Jan Kundrát 9 years ago
parent d6b34d7b5c
commit 61cdd170fd

@ -78,3 +78,6 @@ install(
NAMESPACE "${namespace}"
DESTINATION "${config_install_dir}"
)
file(GLOB_RECURSE spdlog_include_SRCS "${HEADER_BASE}/*.h")
add_custom_target(spdlog_headers_for_ide SOURCES ${spdlog_include_SRCS})

Loading…
Cancel
Save