|
|
@ -8,7 +8,9 @@ project(${PROJECT_NAME})
|
|
|
|
|
|
|
|
|
|
|
|
set(CMAKE_CXX_FLAGS
|
|
|
|
set(CMAKE_CXX_FLAGS
|
|
|
|
"${CMAKE_CXX_FLAGS} -std=c++14")
|
|
|
|
"${CMAKE_CXX_FLAGS} -std=c++14")
|
|
|
|
|
|
|
|
if (WIN32)
|
|
|
|
|
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wa,-mbig-obj -O3")
|
|
|
|
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
|
|
# find boost
|
|
|
|
# find boost
|
|
|
|
find_package(Boost COMPONENTS
|
|
|
|
find_package(Boost COMPONENTS
|
|
|
@ -91,6 +93,9 @@ add_library(wallet STATIC IMPORTED)
|
|
|
|
set_property(TARGET wallet
|
|
|
|
set_property(TARGET wallet
|
|
|
|
PROPERTY IMPORTED_LOCATION ${MONERO_LIBS_DIR}/libwallet.a)
|
|
|
|
PROPERTY IMPORTED_LOCATION ${MONERO_LIBS_DIR}/libwallet.a)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
add_library(unbound STATIC IMPORTED)
|
|
|
|
|
|
|
|
set_property(TARGET unbound PROPERTY IMPORTED_LOCATION ${MONERO_LIBS_DIR}/libunbound.a)
|
|
|
|
|
|
|
|
|
|
|
|
# include boost headers
|
|
|
|
# include boost headers
|
|
|
|
include_directories(${Boost_INCLUDE_DIRS})
|
|
|
|
include_directories(${Boost_INCLUDE_DIRS})
|
|
|
|
include_directories("ext/mstch/include")
|
|
|
|
include_directories("ext/mstch/include")
|
|
|
@ -183,12 +188,22 @@ set(LIBRARIES
|
|
|
|
pthread
|
|
|
|
pthread
|
|
|
|
unbound
|
|
|
|
unbound
|
|
|
|
curl
|
|
|
|
curl
|
|
|
|
dl
|
|
|
|
|
|
|
|
crypto
|
|
|
|
crypto
|
|
|
|
ssl)
|
|
|
|
ssl)
|
|
|
|
|
|
|
|
|
|
|
|
if (NOT ${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
|
|
|
if (NOT ${CMAKE_SYSTEM_NAME} MATCHES "Darwin" AND NOT WIN32)
|
|
|
|
set(LIBRARIES ${LIBRARIES} unwind)
|
|
|
|
set(LIBRARIES ${LIBRARIES} unwind)
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (WIN32)
|
|
|
|
|
|
|
|
set(LIBRARIES ${LIBRARIES}
|
|
|
|
|
|
|
|
wsock32
|
|
|
|
|
|
|
|
ntdll
|
|
|
|
|
|
|
|
ws2_32
|
|
|
|
|
|
|
|
Iphlpapi
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
else()
|
|
|
|
|
|
|
|
set(LIBRARIES ${LIBRARIES} dl)
|
|
|
|
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
|
|
target_link_libraries(${PROJECT_NAME} ${LIBRARIES})
|
|
|
|
target_link_libraries(${PROJECT_NAME} ${LIBRARIES})
|
|
|
|