2014-10-10 14:37:54 +00:00
|
|
|
cmake_policy(SET CMP0015 NEW)
|
2014-12-04 08:55:54 +00:00
|
|
|
set(CMAKE_AUTOMOC OFF)
|
2014-10-10 14:37:54 +00:00
|
|
|
|
|
|
|
aux_source_directory(. SRC_LIST)
|
|
|
|
|
2014-12-07 10:29:38 +00:00
|
|
|
include_directories(${Boost_INCLUDE_DIRS})
|
2014-10-10 14:37:54 +00:00
|
|
|
include_directories(..)
|
|
|
|
|
|
|
|
set(EXECUTABLE solc)
|
|
|
|
|
2014-12-07 10:29:38 +00:00
|
|
|
file(GLOB HEADERS "*.h")
|
|
|
|
add_executable(${EXECUTABLE} ${SRC_LIST} ${HEADERS})
|
2014-10-10 14:37:54 +00:00
|
|
|
|
2014-12-15 18:01:20 +00:00
|
|
|
target_link_libraries(${EXECUTABLE} ${Boost_FILESYSTEM_LIBRARIES})
|
|
|
|
target_link_libraries(${EXECUTABLE} ${Boost_PROGRAM_OPTIONS_LIBRARIES})
|
2014-10-10 14:37:54 +00:00
|
|
|
target_link_libraries(${EXECUTABLE} solidity)
|
|
|
|
|
|
|
|
install( TARGETS ${EXECUTABLE} DESTINATION bin )
|
|
|
|
|