diff --git a/libebpfdiscoveryproto/CMakeLists.txt b/libebpfdiscoveryproto/CMakeLists.txt index 6d856627..b1b1eff2 100644 --- a/libebpfdiscoveryproto/CMakeLists.txt +++ b/libebpfdiscoveryproto/CMakeLists.txt @@ -1,10 +1,10 @@ -set(PROTO_DIR_NAME proto) +set(PROTO_DIR_NAME ebpfdiscoveryproto) set(SRC_DIR_NAME src) list( APPEND PROTO_SOURCES - ${PROTO_DIR_NAME}/ebpfdiscoveryproto/service.proto + ${PROTO_DIR_NAME}/service.proto ) list( @@ -20,7 +20,7 @@ protobuf_generate_cpp(PROTO_SRCS PROTO_HDRS ${PROTO_SOURCES}) add_library(${TARGET} STATIC ${PROTO_SRCS} ${SOURCES}) target_link_libraries(${TARGET} protobuf::libprotobuf) target_link_libraries(${TARGET} service) -target_include_directories(${TARGET} PRIVATE ${CMAKE_CURRENT_BINARY_DIR} PUBLIC ${CMAKE_CURRENT_BINARY_DIR}/${PROTO_DIR_NAME} headers) +target_include_directories(${TARGET} PUBLIC ${CMAKE_CURRENT_BINARY_DIR} headers) if (BUILD_TESTS) list(APPEND TEST_SOURCES test/TranslatorTest.cpp) diff --git a/libebpfdiscoveryproto/proto/ebpfdiscoveryproto/service.proto b/libebpfdiscoveryproto/ebpfdiscoveryproto/service.proto similarity index 100% rename from libebpfdiscoveryproto/proto/ebpfdiscoveryproto/service.proto rename to libebpfdiscoveryproto/ebpfdiscoveryproto/service.proto