@ -15,6 +15,7 @@ include_directories(BEFORE ..)
# w e m a y n o t u s e i t i n l i b p 2 p , b u t o n e o f o u r d e p e n d e c i e s i s i n c l u d i n g l e v e l d b i n h e a d e r f i l e
# a n d w i n d o w s i s f a i l i n g t o b u i l d w i t h o u t t h a t
include_directories ( ${ LEVELDB_INCLUDE_DIRS } )
include_directories ( ${ Boost_INCLUDE_DIRS } )
if ( MINIUPNPC_FOUND )
include_directories ( ${ MINIUPNPC_INCLUDE_DIRS } )
@ -37,6 +38,10 @@ endif()
target_link_libraries ( ${ EXECUTABLE } devcrypto )
target_link_libraries ( ${ EXECUTABLE } devcore )
install ( TARGETS ${ EXECUTABLE } ARCHIVE DESTINATION lib LIBRARY DESTINATION lib )
if ( CMAKE_COMPILER_IS_MINGW )
target_link_libraries ( ${ EXECUTABLE } ws2_32 mswsock )
endif ( )
install ( TARGETS ${ EXECUTABLE } RUNTIME DESTINATION bin ARCHIVE DESTINATION lib LIBRARY DESTINATION lib )
install ( FILES ${ HEADERS } DESTINATION include/ ${ EXECUTABLE } )