solidity/CMakeLists.txt

39 lines
907 B
CMake
Raw Normal View History

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})
# Set cmake_policies
include(EthPolicy)
eth_policy()
# project name and version should be set after cmake_policy CMP0048
2016-03-31 16:45:14 +00:00
set(PROJECT_VERSION "0.3.1")
project(solidity VERSION ${PROJECT_VERSION})
# Let's find our dependencies
2015-08-19 12:57:25 +00:00
include(EthDependencies)
# Figure out what compiler and system are we using
2015-08-19 12:57:25 +00:00
include(EthCompilerSettings)
# Include helper macros
include(EthExecutableHelper)
# Include utils
include(EthUtils)
2015-08-19 12:57:25 +00:00
include(EthOptions)
2015-09-16 13:55:25 +00:00
configure_project(TESTS)
2016-03-21 18:37:15 +00:00
add_subdirectory(libevmasm)
add_subdirectory(libsolidity)
add_subdirectory(solc)
if (NOT EMSCRIPTEN)
2016-03-21 18:36:01 +00:00
add_subdirectory(liblll)
add_subdirectory(test)
2016-03-21 18:32:42 +00:00
add_subdirectory(lllc)
endif()
2015-08-19 12:57:25 +00:00
# TODO installation and packaging rules