Skip to content
Snippets Groups Projects
Commit 609d2514 authored by Chao Peng's avatar Chao Peng
Browse files

Add et_producer and et_consumer

parent 0c3e704b
No related branches found
No related tags found
No related merge requests found
......@@ -66,3 +66,4 @@ if(HCANA_BUILTIN_PODD)
endif()
add_subdirectory(src)
add_subdirectory(cmake)
add_subdirectory(tools)
......@@ -79,11 +79,6 @@ if(WITH_DEBUG)
target_compile_definitions(${LIBNAME} PUBLIC WITH_DEBUG)
endif()
target_link_directories(${LIBNAME}
PUBLIC
"/site/coda/3.10/Linux-x86_64/lib"
)
target_link_libraries(${LIBNAME}
PUBLIC
Podd::Podd
......
file(GLOB APP_SOURCES RELATIVE ${CMAKE_CURRENT_LIST_DIR} "*.cpp")
foreach(exe_src ${APP_SOURCES})
string(REPLACE ".cpp" "" exe ${exe_src})
add_executable(${exe} ${exe_src})
target_include_directories(${exe}
PUBLIC #$<INSTALL_INTERFACE:include>
$<INSTALL_INTERFACE:include>
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include/hcana>
$<BUILD_INTERFACE:${Podd_DIR}/../../include/podd2>
$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}> # for hc_compiledata.h
$<BUILD_INTERFACE:${SPDLOG_INCLUDE_DIR}>
$<INSTALL_INTERFACE:${SPDLOG_INCLUDE_DIR}>
$<BUILD_INTERFACE:${FMT_INCLUDE_DIR}>
$<BUILD_INTERFACE:${CODA_ET_INCLUDE_DIR}>
)
target_link_libraries(${exe}
PUBLIC
Podd::Podd
Podd::Decode
coda_et::coda_et
)
install(TARGETS ${exe} DESTINATION ${CMAKE_INSTALL_BINDIR})
endforeach(exe_src ${APP_SOURCES})
This diff is collapsed.
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment