Skip to content

Commit c3f9860

Browse files
committed
forgot the new CMakelists.txt under eth directory
1 parent 8c75b07 commit c3f9860

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

src/eth/CMakeLists.txt

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# eth peer discovery library
2+
add_library(eth OBJECT
3+
${CMAKE_CURRENT_LIST_DIR}/messages.cpp
4+
${CMAKE_CURRENT_LIST_DIR}/objects.cpp
5+
${CMAKE_CURRENT_LIST_DIR}/event_filter.cpp
6+
${CMAKE_CURRENT_LIST_DIR}/abi_decoder.cpp
7+
${CMAKE_CURRENT_LIST_DIR}/chain_tracker.cpp
8+
${CMAKE_CURRENT_LIST_DIR}/eth_watch_service.cpp
9+
)
10+
11+
target_include_directories(eth PUBLIC
12+
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/../../include>
13+
$<INSTALL_INTERFACE:include>
14+
$<BUILD_INTERFACE:${crypto3_INCLUDE_DIR}>
15+
)
16+
17+
# Install headers
18+
install(DIRECTORY ${CMAKE_CURRENT_LIST_DIR}/../../include/eth/
19+
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/eth
20+
FILES_MATCHING PATTERN "*.hpp"
21+
)
22+
23+

0 commit comments

Comments
 (0)