Skip to content

Commit

Permalink
client refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
debris committed Aug 27, 2015
1 parent 66552f4 commit 1741e89
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 16 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,7 @@
*.app

# Build directory
build/
build/

# vim stuff
*.swp
5 changes: 1 addition & 4 deletions libsolidity/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,9 @@ set(EXECUTABLE solidity)
file(GLOB HEADERS "*.h")

include_directories(BEFORE ..)
include_directories(BEFORE ${JSONCPP_INCLUDE_DIRS})
add_library(${EXECUTABLE} ${SRC_LIST} ${HEADERS})

eth_use(${EXECUTABLE} REQUIRED EthCore)

target_link_libraries(${EXECUTABLE} ${JSONCPP_LIBRARIES})
eth_use(${EXECUTABLE} REQUIRED Eth::devcore Eth::evmasm)

install( TARGETS ${EXECUTABLE} RUNTIME DESTINATION bin ARCHIVE DESTINATION lib LIBRARY DESTINATION lib )
install( FILES ${HEADERS} DESTINATION include/${EXECUTABLE} )
Expand Down
7 changes: 1 addition & 6 deletions solc/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,21 +1,16 @@
cmake_policy(SET CMP0015 NEW)
set(CMAKE_AUTOMOC OFF)

aux_source_directory(. SRC_LIST)
list(REMOVE_ITEM SRC_LIST "./jsonCompiler.cpp")

include_directories(BEFORE ${JSONCPP_INCLUDE_DIRS})
include_directories(BEFORE ..)
include_directories(${Boost_INCLUDE_DIRS})

set(EXECUTABLE solc)

file(GLOB HEADERS "*.h")
add_executable(${EXECUTABLE} ${SRC_LIST} ${HEADERS})

eth_use(${EXECUTABLE} REQUIRED EthCore)

target_link_libraries(${EXECUTABLE} solidity)
eth_use(${EXECUTABLE} REQUIRED Solidity)
target_link_libraries(${EXECUTABLE} ${Boost_PROGRAM_OPTIONS_LIBRARIES})

if (APPLE)
Expand Down
6 changes: 1 addition & 5 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,10 @@ file(GLOB HEADERS "*.h")
set(EXECUTABLE soltest)
add_executable(${EXECUTABLE} ${SRC_LIST} ${HEADERS})

eth_use(${EXECUTABLE} REQUIRED EthCore)
eth_use(${EXECUTABLE} REQUIRED Solidity Eth::ethereum)

include_directories(BEFORE ..)
include_directories(BEFORE ${JSONCPP_INCLUDE_DIRS})
target_link_libraries(${EXECUTABLE} ${Boost_UNIT_TEST_FRAMEWORK_LIBRARIES})
target_link_libraries(${EXECUTABLE} ${ETH_ETHEREUM_LIBRARY})
target_link_libraries(${EXECUTABLE} ${ETH_ETHCORE_LIBRARY})
target_link_libraries(${EXECUTABLE} solidity)

enable_testing()
set(CTEST_OUTPUT_ON_FAILURE TRUE)

0 comments on commit 1741e89

Please sign in to comment.