2018-05-02 10:27:47 +01:00
|
|
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2018-06-10 09:37:58 +01:00
|
|
|
index 0c05208f..8893648e 100644
|
2018-05-02 10:27:47 +01:00
|
|
|
--- a/CMakeLists.txt
|
|
|
|
+++ b/CMakeLists.txt
|
2018-12-14 13:05:46 +00:00
|
|
|
@@ -48,6 +48,22 @@ add_subdirectory(libevmasm)
|
2018-05-02 10:27:47 +01:00
|
|
|
add_subdirectory(libsolidity)
|
|
|
|
add_subdirectory(libsolc)
|
|
|
|
|
|
|
|
+install(DIRECTORY libdevcore/
|
|
|
|
+ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/libdevcore
|
|
|
|
+ FILES_MATCHING PATTERN "*.h")
|
|
|
|
+install(DIRECTORY libevmasm/
|
|
|
|
+ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/libevmasm
|
|
|
|
+ FILES_MATCHING PATTERN "*.h")
|
|
|
|
+install(DIRECTORY libsolidity/
|
|
|
|
+ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/libsolidity
|
|
|
|
+ FILES_MATCHING PATTERN "*.h")
|
2018-12-06 10:53:09 +00:00
|
|
|
+install(DIRECTORY libyul/
|
|
|
|
+ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/libyul
|
|
|
|
+ FILES_MATCHING PATTERN "*.h")
|
|
|
|
+install(DIRECTORY liblangutil/
|
|
|
|
+ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/liblangutil
|
|
|
|
+ FILES_MATCHING PATTERN "*.h")
|
2018-05-02 10:27:47 +01:00
|
|
|
+
|
|
|
|
if (NOT EMSCRIPTEN)
|
|
|
|
add_subdirectory(solc)
|
|
|
|
add_subdirectory(liblll)
|
|
|
|
diff --git a/libdevcore/CMakeLists.txt b/libdevcore/CMakeLists.txt
|
|
|
|
index fa7e3f48..1f9f52b4 100644
|
|
|
|
--- a/libdevcore/CMakeLists.txt
|
|
|
|
+++ b/libdevcore/CMakeLists.txt
|
|
|
|
@@ -6,3 +6,4 @@ target_link_libraries(devcore PRIVATE jsoncpp ${Boost_FILESYSTEM_LIBRARIES} ${Bo
|
|
|
|
target_include_directories(devcore PUBLIC "${CMAKE_SOURCE_DIR}")
|
|
|
|
target_include_directories(devcore SYSTEM PUBLIC ${Boost_INCLUDE_DIRS})
|
|
|
|
add_dependencies(devcore solidity_BuildInfo.h)
|
|
|
|
+install(TARGETS devcore LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
|
|
|
diff --git a/libevmasm/CMakeLists.txt b/libevmasm/CMakeLists.txt
|
|
|
|
index 86192c1b..e7f15e93 100644
|
|
|
|
--- a/libevmasm/CMakeLists.txt
|
|
|
|
+++ b/libevmasm/CMakeLists.txt
|
|
|
|
@@ -3,3 +3,4 @@ file(GLOB headers "*.h")
|
|
|
|
|
|
|
|
add_library(evmasm ${sources} ${headers})
|
2018-06-10 09:37:58 +01:00
|
|
|
target_link_libraries(evmasm PUBLIC devcore)
|
2018-05-02 10:27:47 +01:00
|
|
|
+install(TARGETS evmasm LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
|
|
|
diff --git a/libsolidity/CMakeLists.txt b/libsolidity/CMakeLists.txt
|
2018-06-10 09:37:58 +01:00
|
|
|
index 0bdec4b4..e876177e 100644
|
2018-05-02 10:27:47 +01:00
|
|
|
--- a/libsolidity/CMakeLists.txt
|
|
|
|
+++ b/libsolidity/CMakeLists.txt
|
2018-06-10 09:37:58 +01:00
|
|
|
@@ -29,6 +29,7 @@ endif()
|
2018-05-02 10:27:47 +01:00
|
|
|
|
2019-06-25 17:24:04 +01:00
|
|
|
add_library(solidity ${sources} ${z3_SRCS} ${cvc4_SRCS})
|
|
|
|
target_link_libraries(solidity PUBLIC yul evmasm langutil devcore Boost::boost Boost::filesystem Boost::system)
|
2018-05-02 10:27:47 +01:00
|
|
|
+install(TARGETS solidity LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
|
|
|
|
|
|
|
if (${Z3_FOUND})
|
|
|
|
target_link_libraries(solidity PUBLIC ${Z3_LIBRARY})
|
2018-12-06 10:53:09 +00:00
|
|
|
--- a/libyul/CMakeLists.txt
|
|
|
|
+++ b/libyul/CMakeLists.txt
|
2018-12-21 22:42:03 +00:00
|
|
|
@@ -43,3 +43,4 @@ endif()
|
2018-12-06 10:53:09 +00:00
|
|
|
optimiser/VarDeclPropagator.cpp
|
|
|
|
)
|
2018-12-21 22:42:03 +00:00
|
|
|
target_link_libraries(yul PUBLIC evmasm devcore langutil)
|
2018-12-06 10:53:09 +00:00
|
|
|
+install(TARGETS yul LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
|
|
|
--- a/liblangutil/CMakeLists.txt
|
|
|
|
+++ b/liblangutil/CMakeLists.txt
|
|
|
|
@@ -11,3 +11,4 @@ endif()
|
|
|
|
|
|
|
|
add_library(langutil ${sources})
|
|
|
|
target_link_libraries(langutil PUBLIC devcore)
|
|
|
|
+install(TARGETS langutil LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
|