Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gabime/spdlog.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Kundrát <jan.kundrat@cesnet.cz>2016-11-22 12:10:52 +0300
committerJan Kundrát <jan.kundrat@cesnet.cz>2016-11-22 12:10:52 +0300
commit61cdd170fd029ca77eedf273ede945f6e5f080ca (patch)
tree9f37140c5f28e3880808924cdaa9c21158d12a7e /CMakeLists.txt
parentd6b34d7b5c62a0000d96939ad946b85a2274f2bb (diff)
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.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
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})