|
| 1 | +diff --git a/CMakeLists.txt b/CMakeLists.txt |
| 2 | +index 0c05208f..8893648e 100644 |
| 3 | +--- a/CMakeLists.txt |
| 4 | ++++ b/CMakeLists.txt |
| 5 | +@@ -48,6 +48,22 @@ add_subdirectory(libevmasm) |
| 6 | + add_subdirectory(libsolidity) |
| 7 | + add_subdirectory(libsolc) |
| 8 | + |
| 9 | ++install(DIRECTORY libdevcore/ |
| 10 | ++ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/libdevcore |
| 11 | ++ FILES_MATCHING PATTERN "*.h") |
| 12 | ++install(DIRECTORY libevmasm/ |
| 13 | ++ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/libevmasm |
| 14 | ++ FILES_MATCHING PATTERN "*.h") |
| 15 | ++install(DIRECTORY libsolidity/ |
| 16 | ++ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/libsolidity |
| 17 | ++ FILES_MATCHING PATTERN "*.h") |
| 18 | ++install(DIRECTORY libyul/ |
| 19 | ++ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/libyul |
| 20 | ++ FILES_MATCHING PATTERN "*.h") |
| 21 | ++install(DIRECTORY liblangutil/ |
| 22 | ++ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/liblangutil |
| 23 | ++ FILES_MATCHING PATTERN "*.h") |
| 24 | ++ |
| 25 | + if (NOT EMSCRIPTEN) |
| 26 | + add_subdirectory(solc) |
| 27 | + add_subdirectory(liblll) |
| 28 | +diff --git a/libdevcore/CMakeLists.txt b/libdevcore/CMakeLists.txt |
| 29 | +index fa7e3f48..1f9f52b4 100644 |
| 30 | +--- a/libdevcore/CMakeLists.txt |
| 31 | ++++ b/libdevcore/CMakeLists.txt |
| 32 | +@@ -6,3 +6,4 @@ target_link_libraries(devcore PRIVATE jsoncpp ${Boost_FILESYSTEM_LIBRARIES} ${Bo |
| 33 | + target_include_directories(devcore PUBLIC "${CMAKE_SOURCE_DIR}") |
| 34 | + target_include_directories(devcore SYSTEM PUBLIC ${Boost_INCLUDE_DIRS}) |
| 35 | + add_dependencies(devcore solidity_BuildInfo.h) |
| 36 | ++install(TARGETS devcore LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}) |
| 37 | +diff --git a/libevmasm/CMakeLists.txt b/libevmasm/CMakeLists.txt |
| 38 | +index 86192c1b..e7f15e93 100644 |
| 39 | +--- a/libevmasm/CMakeLists.txt |
| 40 | ++++ b/libevmasm/CMakeLists.txt |
| 41 | +@@ -3,3 +3,4 @@ file(GLOB headers "*.h") |
| 42 | + |
| 43 | + add_library(evmasm ${sources} ${headers}) |
| 44 | + target_link_libraries(evmasm PUBLIC devcore) |
| 45 | ++install(TARGETS evmasm LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}) |
| 46 | +diff --git a/libsolidity/CMakeLists.txt b/libsolidity/CMakeLists.txt |
| 47 | +index 0bdec4b4..e876177e 100644 |
| 48 | +--- a/libsolidity/CMakeLists.txt |
| 49 | ++++ b/libsolidity/CMakeLists.txt |
| 50 | +@@ -29,6 +29,7 @@ endif() |
| 51 | + |
| 52 | + add_library(solidity ${sources} ${z3_SRCS} ${cvc4_SRCS}) |
| 53 | + target_link_libraries(solidity PUBLIC yul evmasm langutil devcore Boost::boost Boost::filesystem Boost::system) |
| 54 | ++install(TARGETS solidity LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}) |
| 55 | + |
| 56 | + if (${Z3_FOUND}) |
| 57 | + target_link_libraries(solidity PUBLIC ${Z3_LIBRARY}) |
| 58 | +--- a/libyul/CMakeLists.txt |
| 59 | ++++ b/libyul/CMakeLists.txt |
| 60 | +@@ -43,3 +43,4 @@ endif() |
| 61 | + optimiser/VarDeclPropagator.cpp |
| 62 | + ) |
| 63 | + target_link_libraries(yul PUBLIC evmasm devcore langutil) |
| 64 | ++install(TARGETS yul LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}) |
| 65 | +--- a/liblangutil/CMakeLists.txt |
| 66 | ++++ b/liblangutil/CMakeLists.txt |
| 67 | +@@ -11,3 +11,4 @@ endif() |
| 68 | + |
| 69 | + add_library(langutil ${sources}) |
| 70 | + target_link_libraries(langutil PUBLIC devcore) |
| 71 | ++install(TARGETS langutil LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}) |
0 commit comments