diff options
author | mj-xmr <mjxmr@protonmail.com> | 2021-04-16 08:50:52 +0200 |
---|---|---|
committer | mj-xmr <mjxmr@protonmail.com> | 2021-04-16 09:28:43 +0200 |
commit | 15e627569b16c143b3fc6e517c71b3a00f23e6d0 (patch) | |
tree | 3368ef6de0504d79ecf210e3558cfbb52a376c63 /contrib | |
parent | Merge pull request #7650 (diff) | |
download | monero-15e627569b16c143b3fc6e517c71b3a00f23e6d0.tar.xz |
CMake: new macro - finding all headers (extract from epee)
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/epee/src/CMakeLists.txt | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/contrib/epee/src/CMakeLists.txt b/contrib/epee/src/CMakeLists.txt index 881ae5746..f89d6f8cc 100644 --- a/contrib/epee/src/CMakeLists.txt +++ b/contrib/epee/src/CMakeLists.txt @@ -28,11 +28,8 @@ set(EPEE_INCLUDE_DIR_BASE "${CMAKE_CURRENT_SOURCE_DIR}/../include") -# Adding headers to the file list, to be able to search for them in IDEs. -file(GLOB EPEE_HEADERS_PUBLIC - "${EPEE_INCLUDE_DIR_BASE}/*.h*" # h* will include hpps as well. - "${EPEE_INCLUDE_DIR_BASE}/**/*.h*" # Any number of subdirs will be included. -) +# Add headers to the file list, to be able to search for them and autosave in IDEs. +monero_find_all_headers(EPEE_HEADERS_PUBLIC "${EPEE_INCLUDE_DIR_BASE}") add_library(epee STATIC byte_slice.cpp byte_stream.cpp hex.cpp abstract_http_client.cpp http_auth.cpp mlog.cpp net_helper.cpp net_utils_base.cpp string_tools.cpp wipeable_string.cpp levin_base.cpp memwipe.c connection_basic.cpp network_throttle.cpp network_throttle-detail.cpp mlocker.cpp buffer.cpp net_ssl.cpp |