diff options
author | Jan Kundrát <jan.kundrat@cesnet.cz> | 2016-11-22 12:10:52 +0300 |
---|---|---|
committer | Jan Kundrát <jan.kundrat@cesnet.cz> | 2016-11-22 12:10:52 +0300 |
commit | 61cdd170fd029ca77eedf273ede945f6e5f080ca (patch) | |
tree | 9f37140c5f28e3880808924cdaa9c21158d12a7e /CMakeLists.txt | |
parent | d6b34d7b5c62a0000d96939ad946b85a2274f2bb (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.txt | 3 |
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})
|