mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
commit
667921243b
@ -1,6 +1,6 @@
|
|||||||
cmake_minimum_required(VERSION 3.0.0)
|
cmake_minimum_required(VERSION 3.0.0)
|
||||||
|
|
||||||
set(ETH_CMAKE_DIR "${CMAKE_CURRENT_LIST_DIR}/../cpp-ethereum-cmake" CACHE PATH "The the path to the cmake directory")
|
set(ETH_CMAKE_DIR "${CMAKE_CURRENT_LIST_DIR}/../helpers/cmake" CACHE PATH "The the path to the cmake directory")
|
||||||
list(APPEND CMAKE_MODULE_PATH ${ETH_CMAKE_DIR})
|
list(APPEND CMAKE_MODULE_PATH ${ETH_CMAKE_DIR})
|
||||||
|
|
||||||
# Set cmake_policies
|
# Set cmake_policies
|
||||||
|
@ -1,6 +1,3 @@
|
|||||||
cmake_policy(SET CMP0015 NEW)
|
|
||||||
set(CMAKE_AUTOMOC OFF)
|
|
||||||
|
|
||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DSTATICLIB")
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DSTATICLIB")
|
||||||
|
|
||||||
aux_source_directory(. SRC_LIST)
|
aux_source_directory(. SRC_LIST)
|
||||||
@ -12,7 +9,7 @@ file(GLOB HEADERS "*.h")
|
|||||||
include_directories(BEFORE ..)
|
include_directories(BEFORE ..)
|
||||||
add_library(${EXECUTABLE} ${SRC_LIST} ${HEADERS})
|
add_library(${EXECUTABLE} ${SRC_LIST} ${HEADERS})
|
||||||
|
|
||||||
eth_use(${EXECUTABLE} REQUIRED Eth::devcore Eth::evmasm)
|
eth_use(${EXECUTABLE} REQUIRED Dev::devcore Eth::evmasm)
|
||||||
|
|
||||||
install( TARGETS ${EXECUTABLE} RUNTIME DESTINATION bin ARCHIVE DESTINATION lib LIBRARY DESTINATION lib )
|
install( TARGETS ${EXECUTABLE} RUNTIME DESTINATION bin ARCHIVE DESTINATION lib LIBRARY DESTINATION lib )
|
||||||
install( FILES ${HEADERS} DESTINATION include/${EXECUTABLE} )
|
install( FILES ${HEADERS} DESTINATION include/${EXECUTABLE} )
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
set(CMAKE_AUTOMOC OFF)
|
|
||||||
|
|
||||||
aux_source_directory(. SRC_LIST)
|
aux_source_directory(. SRC_LIST)
|
||||||
list(REMOVE_ITEM SRC_LIST "./jsonCompiler.cpp")
|
list(REMOVE_ITEM SRC_LIST "./jsonCompiler.cpp")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user