solidity/libsolidity/CMakeLists.txt

17 lines
450 B
CMake
Raw Normal View History

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DSTATICLIB")
aux_source_directory(. SRC_LIST)
set(EXECUTABLE solidity)
2014-11-08 22:48:24 +00:00
file(GLOB HEADERS "*.h")
2014-12-11 14:06:11 +00:00
include_directories(BEFORE ..)
2015-04-22 09:30:33 +00:00
add_library(${EXECUTABLE} ${SRC_LIST} ${HEADERS})
eth_use(${EXECUTABLE} REQUIRED Dev::devcore Eth::evmasm)
install( TARGETS ${EXECUTABLE} RUNTIME DESTINATION bin ARCHIVE DESTINATION lib LIBRARY DESTINATION lib )
install( FILES ${HEADERS} DESTINATION include/${EXECUTABLE} )