diff options
author | chriseth <c@ethdev.com> | 2015-08-19 18:41:16 +0800 |
---|---|---|
committer | chriseth <c@ethdev.com> | 2015-08-19 18:41:16 +0800 |
commit | 1dbfb0350b9e386bc1e246e577981664d70e2299 (patch) | |
tree | c70a495361f0bba7d4638986da75529779da86c8 /src/CMakeLists.txt | |
parent | 068d8d0f4563642ed39aa738ad410deb3a189333 (diff) | |
download | dexon-solidity-1dbfb0350b9e386bc1e246e577981664d70e2299.tar.gz dexon-solidity-1dbfb0350b9e386bc1e246e577981664d70e2299.tar.zst dexon-solidity-1dbfb0350b9e386bc1e246e577981664d70e2299.zip |
Moved all Solidity files.
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r-- | src/CMakeLists.txt | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt new file mode 100644 index 00000000..787e5576 --- /dev/null +++ b/src/CMakeLists.txt @@ -0,0 +1,25 @@ +cmake_policy(SET CMP0015 NEW) +set(CMAKE_AUTOMOC OFF) + +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DSTATICLIB") + +aux_source_directory(. SRC_LIST) + +include_directories(BEFORE ${JSONCPP_INCLUDE_DIRS}) +include_directories(BEFORE ..) +include_directories(${Boost_INCLUDE_DIRS}) + +set(EXECUTABLE solidity) + +file(GLOB HEADERS "*.h") + +add_library(${EXECUTABLE} ${SRC_LIST} ${HEADERS}) +add_dependencies(${EXECUTABLE} BuildInfo.h) + +target_link_libraries(${EXECUTABLE} ${JSONCPP_LIBRARIES}) +target_link_libraries(${EXECUTABLE} evmasm) +target_link_libraries(${EXECUTABLE} devcrypto) + +install( TARGETS ${EXECUTABLE} RUNTIME DESTINATION bin ARCHIVE DESTINATION lib LIBRARY DESTINATION lib ) +install( FILES ${HEADERS} DESTINATION include/${EXECUTABLE} ) + |