mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
cmake refactor in progress
This commit is contained in:
parent
34986ee4fc
commit
fd23ee97d8
@ -5,21 +5,14 @@ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DSTATICLIB")
|
|||||||
|
|
||||||
aux_source_directory(. SRC_LIST)
|
aux_source_directory(. SRC_LIST)
|
||||||
|
|
||||||
include_directories(BEFORE ${JSONCPP_INCLUDE_DIRS})
|
|
||||||
include_directories(BEFORE ..)
|
include_directories(BEFORE ..)
|
||||||
include_directories(${Boost_INCLUDE_DIRS})
|
|
||||||
|
|
||||||
set(EXECUTABLE evmasm)
|
set(EXECUTABLE evmasm)
|
||||||
|
|
||||||
file(GLOB HEADERS "*.h")
|
file(GLOB HEADERS "*.h")
|
||||||
|
|
||||||
if (ETH_STATIC)
|
add_library(${EXECUTABLE} ${SRC_LIST} ${HEADERS})
|
||||||
add_library(${EXECUTABLE} STATIC ${SRC_LIST} ${HEADERS})
|
eth_use(${EXECUTABLE} REQUIRED Eth::evmcore)
|
||||||
else()
|
|
||||||
add_library(${EXECUTABLE} SHARED ${SRC_LIST} ${HEADERS})
|
|
||||||
endif()
|
|
||||||
|
|
||||||
target_link_libraries(${EXECUTABLE} evmcore)
|
|
||||||
|
|
||||||
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} )
|
||||||
|
Loading…
Reference in New Issue
Block a user