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.
This commit is contained in:
Jan Kundrát 2016-11-22 10:10:52 +01:00
parent d6b34d7b5c
commit 61cdd170fd

View File

@ -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})