CmakeLists.txt modified

master
moneroexamples 8 years ago
parent 22c09ab5d4
commit 6bdf82b59d

@ -1,10 +1,5 @@
cmake_minimum_required(VERSION 2.8)
#list(INSERT
# CMAKE_MODULE_PATH 0 ${PROJECT_SOURCE_DIR}/cmake)
set(CMAKE_MODULE_PATH
${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
set(PROJECT_NAME
xmrblocks)
@ -191,7 +186,7 @@ set(LIBRARIES
crypto
ssl)
if (!APPLE)
if (NOT ${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
set(LIBRARIES ${LIBRARIES} unwind)
endif()

@ -304,6 +304,11 @@ int main(int ac, const char* av[]) {
return xmrblocks.search(string(req.url_params.get("value")));
});
CROW_ROUTE(app, "/mempool")
([&](const crow::request& req) {
return xmrblocks.mempool();
});
CROW_ROUTE(app, "/robots.txt")
([&]() {
string text = "User-agent: *\n"

Loading…
Cancel
Save