@ -120,7 +120,13 @@ set (CLIENT_SRC
@@ -120,7 +120,13 @@ set (CLIENT_SRC
if ( WITH_WEBSOCKETS )
list ( APPEND CLIENT_SRC "${LIBI2PD_CLIENT_SRC_DIR}/Websocket.cpp" )
endif ( )
add_library ( i2pdclient ${ CLIENT_SRC } )
add_library ( libi2pdclient ${ CLIENT_SRC } )
set_target_properties ( libi2pdclient PROPERTIES PREFIX "" )
install ( TARGETS libi2pdclient
E X P O R T l i b i 2 p d c l i e n t
A R C H I V E D E S T I N A T I O N l i b
L I B R A R Y D E S T I N A T I O N l i b
C O M P O N E N T L i b r a r i e s )
set ( DAEMON_SRC_DIR ../daemon )
@ -304,7 +310,7 @@ if (WITH_PCH)
@@ -304,7 +310,7 @@ if (WITH_PCH)
W O R K I N G _ D I R E C T O R Y $ { C M A K E _ B I N A R Y _ D I R }
)
target_compile_options ( libi2pd PRIVATE /FIstdafx.h /Yustdafx.h /Zm155 "/Fp${CMAKE_BINARY_DIR}/stdafx.dir/$<CONFIG>/stdafx.pch" )
target_compile_options ( i2pdclient PRIVATE /FIstdafx.h /Yustdafx.h /Zm155 "/Fp${CMAKE_BINARY_DIR}/stdafx.dir/$<CONFIG>/stdafx.pch" )
target_compile_options ( lib i2pdclient PRIVATE /FIstdafx.h /Yustdafx.h /Zm155 "/Fp${CMAKE_BINARY_DIR}/stdafx.dir/$<CONFIG>/stdafx.pch" )
else ( )
string ( TOUPPER ${ CMAKE_BUILD_TYPE } BTU )
get_directory_property ( DEFS DEFINITIONS )
@ -313,12 +319,12 @@ if (WITH_PCH)
@@ -313,12 +319,12 @@ if (WITH_PCH)
C O M M A N D $ { C M A K E _ C X X _ C O M P I L E R } $ { F L A G S } - c $ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / . . / l i b i 2 p d / s t d a f x . h - o $ { C M A K E _ B I N A R Y _ D I R } / s t d a f x . h . g c h
)
target_compile_options ( libi2pd PRIVATE -include libi2pd/stdafx.h )
target_compile_options ( i2pdclient PRIVATE -include libi2pd/stdafx.h )
target_compile_options ( lib i2pdclient PRIVATE -include libi2pd/stdafx.h )
endif ( )
target_link_libraries ( libi2pd stdafx )
endif ( )
target_link_libraries ( i2pdclient libi2pd )
target_link_libraries ( lib i2pdclient libi2pd )
find_package ( Boost COMPONENTS system filesystem program_options date_time REQUIRED )
if ( NOT DEFINED Boost_INCLUDE_DIRS )
@ -451,7 +457,7 @@ if (WITH_BINARY)
@@ -451,7 +457,7 @@ if (WITH_BINARY)
if ( WITH_STATIC )
set ( DL_LIB ${ CMAKE_DL_LIBS } )
endif ( )
target_link_libraries ( "${PROJECT_NAME}" libi2pd i2pdclient ${ DL_LIB } ${ Boost_LIBRARIES } ${ OPENSSL_LIBRARIES } ${ ZLIB_LIBRARY } ${ CMAKE_THREAD_LIBS_INIT } ${ MINGW_EXTRA } ${ DL_LIB } ${ CMAKE_REQUIRED_LIBRARIES } )
target_link_libraries ( "${PROJECT_NAME}" libi2pd lib i2pdclient ${ DL_LIB } ${ Boost_LIBRARIES } ${ OPENSSL_LIBRARIES } ${ ZLIB_LIBRARY } ${ CMAKE_THREAD_LIBS_INIT } ${ MINGW_EXTRA } ${ DL_LIB } ${ CMAKE_REQUIRED_LIBRARIES } )
install ( TARGETS "${PROJECT_NAME}" RUNTIME DESTINATION ${ CMAKE_INSTALL_BINDIR } COMPONENT Runtime )
set ( APPS "\${CMAKE_INSTALL_PREFIX}/bin/${PROJECT_NAME}${CMAKE_EXECUTABLE_SUFFIX}" )