2015-08-24 13:51:52 +00:00
|
|
|
cmake_minimum_required(VERSION 3.0.0)
|
2015-08-19 12:57:25 +00:00
|
|
|
|
2015-09-08 19:51:24 +00:00
|
|
|
set(ETH_CMAKE_DIR "${CMAKE_CURRENT_LIST_DIR}/../webthree-helpers/cmake" CACHE PATH "The the path to the cmake directory")
|
2015-08-19 12:57:25 +00:00
|
|
|
list(APPEND CMAKE_MODULE_PATH ${ETH_CMAKE_DIR})
|
|
|
|
|
2015-08-24 13:51:52 +00:00
|
|
|
# Set cmake_policies
|
|
|
|
include(EthPolicy)
|
|
|
|
eth_policy()
|
|
|
|
|
|
|
|
# project name and version should be set after cmake_policy CMP0048
|
2015-11-17 14:16:30 +00:00
|
|
|
set(PROJECT_VERSION "0.1.7")
|
2015-08-24 13:51:52 +00:00
|
|
|
project(solidity VERSION ${PROJECT_VERSION})
|
2015-08-19 22:55:41 +00:00
|
|
|
|
|
|
|
# Let's find our dependencies
|
2015-08-19 12:57:25 +00:00
|
|
|
include(EthDependencies)
|
2015-08-19 22:55:41 +00:00
|
|
|
|
|
|
|
# Figure out what compiler and system are we using
|
2015-08-19 12:57:25 +00:00
|
|
|
include(EthCompilerSettings)
|
|
|
|
|
2015-08-19 22:55:41 +00:00
|
|
|
# Include helper macros
|
|
|
|
include(EthExecutableHelper)
|
|
|
|
|
2015-08-24 13:51:52 +00:00
|
|
|
# Include utils
|
|
|
|
include(EthUtils)
|
2015-08-19 12:57:25 +00:00
|
|
|
|
2015-09-11 11:43:58 +00:00
|
|
|
include(EthOptions)
|
2015-09-16 13:55:25 +00:00
|
|
|
configure_project(TESTS)
|
2015-09-11 11:43:58 +00:00
|
|
|
|
2015-08-19 22:55:41 +00:00
|
|
|
add_subdirectory(libsolidity)
|
|
|
|
add_subdirectory(solc)
|
2015-09-14 16:36:39 +00:00
|
|
|
if (NOT EMSCRIPTEN)
|
|
|
|
add_subdirectory(test)
|
|
|
|
endif()
|
2015-08-19 12:57:25 +00:00
|
|
|
|
|
|
|
# TODO installation and packaging rules
|