CMakeLists.txt 607 B

123456789101112131415161718192021222324252627282930313233
  1. set(SOURCES
  2. ExtVMFace.cpp
  3. VM.cpp
  4. VMOpt.cpp
  5. VMCalls.cpp
  6. VMFactory.cpp
  7. )
  8. if (EVMJIT)
  9. list(APPEND SOURCES
  10. JitVM.cpp
  11. SmartVM.cpp
  12. )
  13. endif()
  14. file(GLOB HEADERS "*.h")
  15. add_library(evm ${SOURCES} ${HEADERS})
  16. find_package(Eth)
  17. target_include_directories(evm PRIVATE ..)
  18. target_link_libraries(evm ${Eth_ETHCORE_LIBRARIES})
  19. target_link_libraries(evm ${Eth_EVMCORE_LIBRARIES})
  20. if (EVMJIT)
  21. target_include_directories(evm PRIVATE ../evmjit/include)
  22. target_link_libraries(evm ${Eth_EVMJIT_LIBRARIES})
  23. endif()
  24. install(TARGETS evm RUNTIME DESTINATION bin ARCHIVE DESTINATION lib LIBRARY DESTINATION lib)