2014-10-06 15:13:52 +00:00
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DSTATICLIB")
|
|
|
|
|
2015-10-20 22:21:52 +00:00
|
|
|
aux_source_directory(analysis SRC_LIST)
|
|
|
|
aux_source_directory(ast SRC_LIST)
|
|
|
|
aux_source_directory(codegen SRC_LIST)
|
2015-10-21 14:43:31 +00:00
|
|
|
aux_source_directory(formal SRC_LIST)
|
2015-10-20 22:21:52 +00:00
|
|
|
aux_source_directory(interface SRC_LIST)
|
|
|
|
aux_source_directory(parsing SRC_LIST)
|
2014-10-06 15:13:52 +00:00
|
|
|
|
|
|
|
set(EXECUTABLE solidity)
|
|
|
|
|
2015-10-20 22:21:52 +00:00
|
|
|
file(GLOB HEADERS "*/*.h")
|
2014-12-11 14:06:11 +00:00
|
|
|
|
2015-08-19 22:55:41 +00:00
|
|
|
include_directories(BEFORE ..)
|
2015-04-22 09:30:33 +00:00
|
|
|
add_library(${EXECUTABLE} ${SRC_LIST} ${HEADERS})
|
2015-08-24 13:51:52 +00:00
|
|
|
|
2015-11-26 11:40:15 +00:00
|
|
|
eth_use(${EXECUTABLE} REQUIRED Dev::devcore Eth::evmcore Eth::evmasm)
|
2014-10-06 15:13:52 +00:00
|
|
|
|
2015-01-16 21:37:20 +00:00
|
|
|
install( TARGETS ${EXECUTABLE} RUNTIME DESTINATION bin ARCHIVE DESTINATION lib LIBRARY DESTINATION lib )
|
2014-10-06 15:13:52 +00:00
|
|
|
install( FILES ${HEADERS} DESTINATION include/${EXECUTABLE} )
|
|
|
|
|