CMakeLists.txt 482 B

12345678910111213141516171819
  1. set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DSTATICLIB")
  2. aux_source_directory(. SRC_LIST)
  3. file(GLOB HEADERS "*.h")
  4. add_library(p2p ${SRC_LIST} ${HEADERS})
  5. eth_use(p2p REQUIRED Cryptopp)
  6. eth_use(p2p OPTIONAL Miniupnpc)
  7. find_package(Dev)
  8. target_include_directories(p2p PRIVATE ..)
  9. target_link_libraries(p2p ${Dev_DEVCORE_LIBRARIES})
  10. target_link_libraries(p2p ${Dev_DEVCRYPTO_LIBRARIES})
  11. install(TARGETS p2p RUNTIME DESTINATION bin ARCHIVE DESTINATION lib LIBRARY DESTINATION lib)