CMakeLists.txt 610 B

1234567891011121314151617181920212223242526
  1. aux_source_directory(. SRC_LIST)
  2. add_executable(ethvm ${SRC_LIST})
  3. find_package(Eth)
  4. target_include_directories(ethvm PRIVATE ..)
  5. target_link_libraries(ethvm ${Eth_ETHASH_LIBRARIES})
  6. target_link_libraries(ethvm ${Eth_ETHASHSEAL_LIBRARIES})
  7. if (MSVC)
  8. find_package(Boost QUIET REQUIRED COMPONENTS chrono date_time)
  9. target_link_libraries(ethvm ${Boost_CHRONO_LIBRARIES})
  10. target_link_libraries(ethvm ${Boost_DATE_TIME_LIBRARIES})
  11. endif()
  12. if (UNIX AND NOT APPLE)
  13. target_link_libraries(ethvm pthread)
  14. endif()
  15. if (APPLE)
  16. install(TARGETS ethvm DESTINATION bin)
  17. else()
  18. eth_install_executable(ethvm)
  19. endif()