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,17 +1,17 @@
cmake_minimum_required(VERSION 3.10)
project(PrivateBinAPIExample)
project(LibPrivateBinExample)
set(CMAKE_CXX_STANDARD 17)
# Build example and link against the in-tree target
add_executable(example example.cpp)
target_link_libraries(example PRIVATE privatebinapi)
target_link_libraries(example PRIVATE libprivatebin)
# On Windows, copy the DLL next to the example for easy execution
if(WIN32)
add_custom_command(TARGET example POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_if_different
$<TARGET_FILE:privatebinapi>
$<TARGET_FILE:libprivatebin>
$<TARGET_FILE_DIR:example>
)
endif()

View File

@ -1,4 +1,4 @@
#include "privatebinapi.h"
#include "libprivatebin.h"
#include <iostream>
#include <cstring>
#include <string>