CmakeLists.txt modified

This commit is contained in:
moneroexamples 2017-01-20 01:36:35 +00:00
parent 22c09ab5d4
commit 6bdf82b59d
2 changed files with 6 additions and 6 deletions

View file

@ -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()

View file

@ -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"