From bdac30330eccb5ec73da299922491f3f4ee8debe Mon Sep 17 00:00:00 2001 From: Marek Rusinowski Date: Sat, 10 Feb 2024 17:59:22 +0100 Subject: [PATCH] More clearly expose base64 for external referencing --- CMakeLists.txt | 2 ++ src/lib/base64/CMakeLists.txt | 8 ++++++-- src/pr-downloader.cpp | 2 +- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f4b8e7c9f..58d122503 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -78,6 +78,8 @@ endif() add_subdirectory(src/lib) +add_library(prd::base64 ALIAS pr-base64) + # Include actual program source add_subdirectory(src) diff --git a/src/lib/base64/CMakeLists.txt b/src/lib/base64/CMakeLists.txt index 65d847904..cbc3471da 100644 --- a/src/lib/base64/CMakeLists.txt +++ b/src/lib/base64/CMakeLists.txt @@ -1,3 +1,7 @@ add_library(pr-base64 STATIC - base64.cpp -) \ No newline at end of file + base64.cpp +) + +target_include_directories(pr-base64 + INTERFACE $ +) diff --git a/src/pr-downloader.cpp b/src/pr-downloader.cpp index a2e0e014b..42d2ecafd 100644 --- a/src/pr-downloader.cpp +++ b/src/pr-downloader.cpp @@ -5,8 +5,8 @@ #include "Logger.h" #include "Tracer.h" #include "Version.h" -#include "lib/base64/base64.h" #include "lib/md5/md5.h" +#include #include #include