From 61cdd170fd029ca77eedf273ede945f6e5f080ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Kundr=C3=A1t?= Date: Tue, 22 Nov 2016 10:10:52 +0100 Subject: [PATCH] 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. --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4055eac5..fa1d45a7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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})