Release v0.1.5.4 prepare for release
This commit is contained in:
@@ -9,6 +9,16 @@ 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)
|
||||
|
||||
# Ensure nlohmann_json include directories are available to the test target
|
||||
target_link_libraries(test_basic PRIVATE nlohmann_json::nlohmann_json)
|
||||
target_link_libraries(test_basic PRIVATE cryptopp::cryptopp)
|
||||
|
||||
# Add internal sources for direct testing of C++ components not exported by the DLL
|
||||
target_sources(test_basic PRIVATE
|
||||
${CMAKE_SOURCE_DIR}/src/json_parser.cpp
|
||||
${CMAKE_SOURCE_DIR}/src/http_client.cpp
|
||||
)
|
||||
|
||||
# Ensure the DLL is available next to the test executable on Windows
|
||||
if(WIN32)
|
||||
add_dependencies(test_basic privatebinapi)
|
||||
@@ -17,6 +27,8 @@ if(WIN32)
|
||||
$<TARGET_FILE:privatebinapi>
|
||||
$<TARGET_FILE_DIR:test_basic>
|
||||
)
|
||||
# Link WinHTTP for direct HttpClient usage in tests
|
||||
target_link_libraries(test_basic PRIVATE winhttp)
|
||||
endif()
|
||||
|
||||
# Include directories
|
||||
|
||||
Reference in New Issue
Block a user