build on mac and windows

This commit is contained in:
kenshi84 2017-08-24 23:06:12 +09:00
parent 4b5c4da570
commit 4983786ed5
No known key found for this signature in database
GPG key ID: 085D092F1F43D51A
5 changed files with 39 additions and 22 deletions

View file

@ -62,7 +62,7 @@ endif()
if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin" OR WIN32)
add_library(unbound STATIC IMPORTED)
set_property(TARGET unbound PROPERTY IMPORTED_LOCATION ${MONERO_LIBS_DIR}/libunbound.a)
set_property(TARGET unbound PROPERTY IMPORTED_LOCATION ${MONERO_BUILD_DIR}/external/unbound/libunbound.a)
endif()
# include boost headers
@ -107,14 +107,20 @@ set(LIBRARIES
common
mnemonics
epee
easylogging
${Boost_LIBRARIES}
pthread
unbound
curl
crypto
atomic
ssl)
if(APPLE)
set(LIBRARIES ${LIBRARIES} "-framework IOKit")
else()
set(LIBRARIES ${LIBRARIES} atomic)
endif()
if (NOT ${CMAKE_SYSTEM_NAME} MATCHES "Darwin" AND NOT WIN32)
set(LIBRARIES ${LIBRARIES} unwind)
endif()