|
|
@ -193,8 +193,6 @@ else() |
|
|
|
add_definitions(-DBOOST_SYSTEM_DYN_LINK -DBOOST_FILESYSTEM_DYN_LINK -DBOOST_PROGRAM_OPTIONS_DYN_LINK -DBOOST_DATE_TIME_DYN_LINK -DBOOST_REGEX_DYN_LINK) |
|
|
|
add_definitions(-DBOOST_SYSTEM_DYN_LINK -DBOOST_FILESYSTEM_DYN_LINK -DBOOST_PROGRAM_OPTIONS_DYN_LINK -DBOOST_DATE_TIME_DYN_LINK -DBOOST_REGEX_DYN_LINK) |
|
|
|
endif() |
|
|
|
endif() |
|
|
|
|
|
|
|
|
|
|
|
target_link_libraries(libi2pdclient libi2pd libi2pdlang) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
find_package(Boost COMPONENTS system filesystem program_options date_time REQUIRED) |
|
|
|
find_package(Boost COMPONENTS system filesystem program_options date_time REQUIRED) |
|
|
|
if(NOT DEFINED Boost_INCLUDE_DIRS) |
|
|
|
if(NOT DEFINED Boost_INCLUDE_DIRS) |
|
|
|
message(SEND_ERROR "Boost is not found, or your boost version was below 1.46. Please download Boost!") |
|
|
|
message(SEND_ERROR "Boost is not found, or your boost version was below 1.46. Please download Boost!") |
|
|
@ -269,7 +267,6 @@ if(WITH_BINARY) |
|
|
|
set(DL_LIB ${CMAKE_DL_LIBS}) |
|
|
|
set(DL_LIB ${CMAKE_DL_LIBS}) |
|
|
|
endif() |
|
|
|
endif() |
|
|
|
|
|
|
|
|
|
|
|
target_link_libraries(libi2pd ${Boost_LIBRARIES} ZLIB::ZLIB) |
|
|
|
|
|
|
|
target_link_libraries("${PROJECT_NAME}" libi2pd libi2pdclient libi2pdlang ${DL_LIB} ${Boost_LIBRARIES} OpenSSL::SSL OpenSSL::Crypto ${MINIUPNPC_LIBRARY} ZLIB::ZLIB Threads::Threads ${DL_LIB} ${CMAKE_REQUIRED_LIBRARIES}) |
|
|
|
target_link_libraries("${PROJECT_NAME}" libi2pd libi2pdclient libi2pdlang ${DL_LIB} ${Boost_LIBRARIES} OpenSSL::SSL OpenSSL::Crypto ${MINIUPNPC_LIBRARY} ZLIB::ZLIB Threads::Threads ${DL_LIB} ${CMAKE_REQUIRED_LIBRARIES}) |
|
|
|
|
|
|
|
|
|
|
|
install(TARGETS "${PROJECT_NAME}" RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT Runtime) |
|
|
|
install(TARGETS "${PROJECT_NAME}" RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT Runtime) |
|
|
|