CMakeLists.txt 701 B

123456789101112131415161718192021222324252627
  1. cmake_minimum_required(VERSION 3.5)
  2. list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
  3. # Require C++11.
  4. set(CMAKE_CXX_STANDARD 11)
  5. set(CMAKE_CXX_STANDARD_REQUIRED True)
  6. set(CMAKE_CXX_EXTENSIONS Off)
  7. add_compile_options(-Wall -Werror -Wextra -Wconversion -Wno-sign-conversion -Wno-unknown-pragmas)
  8. if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/evm2wasm/cmake/HunterGate.cmake)
  9. include(evm2wasm/cmake/HunterGate.cmake)
  10. HunterGate(
  11. URL "https://github.com/ruslo/hunter/archive/v0.21.19.tar.gz"
  12. SHA1 "5ead1e069b437930d0de8a21824b20fb52b37b50"
  13. )
  14. endif()
  15. project(hera)
  16. include(ProjectBinaryen)
  17. add_subdirectory(evmc)
  18. add_subdirectory(evm2wasm)
  19. add_subdirectory(src)