Skip to content

Commit 76a1be2

Browse files
Build i2pd binary
1 parent 77abed4 commit 76a1be2

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

external/CMakeLists.txt

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,18 @@ add_library(quirc STATIC
66
)
77
set_target_properties(quirc PROPERTIES POSITION_INDEPENDENT_CODE ON)
88
target_include_directories(quirc PUBLIC quirc/lib)
9+
10+
set(CMAKE_CXX_STANDARD 17)
11+
add_subdirectory(i2pd/build)
12+
13+
if(WIN32)
14+
set(I2PD_BINARY ${CMAKE_BINARY_DIR}/external/i2pd/build/i2pd.exe)
15+
else()
16+
set(I2PD_BINARY ${CMAKE_BINARY_DIR}/external/i2pd/build/i2pd)
17+
endif()
18+
19+
add_custom_target(copy_i2pd_binary ALL
20+
COMMAND ${CMAKE_COMMAND} -E copy
21+
${I2PD_BINARY}
22+
${CMAKE_BINARY_DIR}/bin/
23+
)

0 commit comments

Comments
 (0)