moneroexamples 2017-08-25 07:54:27 +08:00
parent 513b59004f
commit b3d8279af3
5 changed files with 37 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
@ -113,9 +113,15 @@ set(LIBRARIES
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()