There was an error while loading. Please reload this page.
1 parent 77abed4 commit 76a1be2Copy full SHA for 76a1be2
1 file changed
external/CMakeLists.txt
@@ -6,3 +6,18 @@ add_library(quirc STATIC
6
)
7
set_target_properties(quirc PROPERTIES POSITION_INDEPENDENT_CODE ON)
8
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