Release v0.1.8.4 prepare for release

This commit is contained in:
2025-08-29 13:12:32 +02:00
parent 4f32e0a2fd
commit eb73749367
76 changed files with 921 additions and 1011 deletions

View File

@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.10)
project(PrivateBinAPITests)
project(LibPrivateBinTests)
set(CMAKE_CXX_STANDARD 17)
@ -7,7 +7,7 @@ set(CMAKE_CXX_STANDARD 17)
add_executable(test_basic test_basic.cpp)
# Link with the already-defined privatebinapi target from the root project
target_link_libraries(test_basic PRIVATE privatebinapi)
target_link_libraries(test_basic PRIVATE libprivatebin)
# Ensure nlohmann_json include directories are available to the test target
target_link_libraries(test_basic PRIVATE nlohmann_json::nlohmann_json)
@ -21,10 +21,10 @@ target_sources(test_basic PRIVATE
# Ensure the DLL is available next to the test executable on Windows
if(WIN32)
add_dependencies(test_basic privatebinapi)
add_dependencies(test_basic libprivatebin)
add_custom_command(TARGET test_basic POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_if_different
$<TARGET_FILE:privatebinapi>
$<TARGET_FILE:libprivatebin>
$<TARGET_FILE_DIR:test_basic>
)
# Link WinHTTP for direct HttpClient usage in tests

View File

@ -2,7 +2,7 @@
// Server under test: https://privatebin.medisoftware.org/
// Enable by setting environment variable PRIVATEBIN_IT=1
#include "privatebinapi.h"
#include "libprivatebin.h"
#include "json_parser.h"
#include "http_client.h"
#include <iostream>