Release v0.1.8.4 prepare for release
This commit is contained in:
@ -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()
|
||||
Reference in New Issue
Block a user