CMakeLists.txt 759 B

12345678910111213141516171819202122232425262728293031323334
  1. aux_source_directory(. SRC_LIST)
  2. add_executable(rlp ${SRC_LIST})
  3. eth_use(rlp REQUIRED Cryptopp)
  4. if (NOT EMSCRIPTEN AND NOT MSVC)
  5. eth_use(rlp ${REQUIRED} Utils::secp256k1)
  6. endif()
  7. find_package(Dev)
  8. target_include_directories(rlp PRIVATE ..)
  9. target_include_directories(rlp PRIVATE ../utils)
  10. target_link_libraries(rlp ${Dev_DEVCORE_LIBRARIES})
  11. target_link_libraries(rlp ${Dev_DEVCRYPTO_LIBRARIES})
  12. if (MSVC)
  13. find_package(Boost QUIET REQUIRED COMPONENTS chrono date_time)
  14. target_link_libraries(rlp ${Boost_CHRONO_LIBRARIES})
  15. target_link_libraries(rlp ${Boost_DATE_TIME_LIBRARIES})
  16. endif()
  17. if (UNIX AND NOT APPLE)
  18. target_link_libraries(rlp pthread)
  19. endif()
  20. if (APPLE)
  21. install(TARGETS rlp DESTINATION bin)
  22. else()
  23. eth_install_executable(rlp)
  24. endif()