move dev tools into tools/
This commit is contained in:
parent
17787b8ab1
commit
2c75142cb8
19 changed files with 31 additions and 73 deletions
|
@ -13,34 +13,8 @@ target_include_directories(mesytec-mnode
|
|||
target_link_libraries(mesytec-mnode PUBLIC nng mnode-proto PRIVATE spdlog)
|
||||
target_compile_features(mesytec-mnode PRIVATE cxx_std_17)
|
||||
|
||||
add_library(mesytec-mnode-dev INTERFACE)
|
||||
target_link_libraries(mesytec-mnode-dev INTERFACE mesytec-mnode mesytec-mvlc)
|
||||
add_subdirectory(tools)
|
||||
|
||||
function(add_mnode_dev_executable name)
|
||||
add_executable(${name} ${name}.cc)
|
||||
target_link_libraries(${name} PRIVATE mesytec-mnode-dev)
|
||||
target_compile_options(${name} PRIVATE ${MVLC_NNG_MNODE_WARN_FLAGS})
|
||||
endfunction()
|
||||
|
||||
function(add_mnode_proto_dev_executable name)
|
||||
add_mnode_dev_executable(${name})
|
||||
target_link_libraries(${name} PRIVATE mnode-proto mesytec-mvlc)
|
||||
endfunction()
|
||||
|
||||
add_mnode_dev_executable(pair_producer)
|
||||
add_mnode_dev_executable(pair_consumer)
|
||||
add_mnode_dev_executable(pair_inproc)
|
||||
add_mnode_dev_executable(mvlc_nng_replay)
|
||||
add_mnode_dev_executable(mesy_nng_pipeline_main)
|
||||
add_mnode_dev_executable(mesy_nng_push_pull_main)
|
||||
add_mnode_dev_executable(mesy_nng_pub_producer)
|
||||
add_mnode_dev_executable(mesy_nng_sub_consumer)
|
||||
|
||||
add_mnode_proto_dev_executable(mnode_proto_test1)
|
||||
add_mnode_proto_dev_executable(mnode_proto_ping_client)
|
||||
add_mnode_proto_dev_executable(mnode_proto_ping_server)
|
||||
add_mnode_proto_dev_executable(mnode_proto_rpc_ping_server)
|
||||
add_mnode_proto_dev_executable(mnode_proto_rpc_ping_client)
|
||||
|
||||
#add_subdirectory(qt)
|
||||
|
||||
|
|
|
@ -1,14 +0,0 @@
|
|||
#ifndef CF3DAF23_18D2_419E_9DCC_3855C5A63226
|
||||
#define CF3DAF23_18D2_419E_9DCC_3855C5A63226
|
||||
|
||||
#include <mesytec-node/mesytec_node_nng.h>
|
||||
|
||||
namespace mesytec::mnode::pipeline
|
||||
{
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
#endif /* CF3DAF23_18D2_419E_9DCC_3855C5A63226 */
|
|
@ -1,22 +0,0 @@
|
|||
#include "thread_name.h"
|
||||
#ifdef __linux__
|
||||
#include <sys/prctl.h>
|
||||
#endif
|
||||
|
||||
namespace mesytec::util
|
||||
{
|
||||
|
||||
#ifdef __linux__
|
||||
void set_thread_name(const char *name)
|
||||
{
|
||||
prctl(PR_SET_NAME,name,0,0,0);
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
void set_thread_name(const char *)
|
||||
{
|
||||
}
|
||||
|
||||
#endif
|
||||
}
|
|
@ -1,9 +0,0 @@
|
|||
#ifndef CAF8B988_F0C9_475A_8E38_8789949859DB
|
||||
#define CAF8B988_F0C9_475A_8E38_8789949859DB
|
||||
|
||||
namespace mesytec::util
|
||||
{
|
||||
void set_thread_name(const char *name);
|
||||
}
|
||||
|
||||
#endif /* CAF8B988_F0C9_475A_8E38_8789949859DB */
|
29
src/tools/CMakeLists.txt
Normal file
29
src/tools/CMakeLists.txt
Normal file
|
@ -0,0 +1,29 @@
|
|||
add_library(mesytec-mnode-dev INTERFACE)
|
||||
target_link_libraries(mesytec-mnode-dev INTERFACE mesytec-mnode mesytec-mvlc)
|
||||
target_include_directories(mesytec-mnode-dev INTERFACE $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/..>)
|
||||
|
||||
function(add_mnode_dev_executable name)
|
||||
add_executable(${name} ${name}.cc)
|
||||
target_link_libraries(${name} PRIVATE mesytec-mnode-dev)
|
||||
target_compile_options(${name} PRIVATE ${MVLC_NNG_MNODE_WARN_FLAGS})
|
||||
endfunction()
|
||||
|
||||
function(add_mnode_proto_dev_executable name)
|
||||
add_mnode_dev_executable(${name})
|
||||
target_link_libraries(${name} PRIVATE mnode-proto mesytec-mvlc)
|
||||
endfunction()
|
||||
|
||||
add_mnode_dev_executable(pair_producer)
|
||||
add_mnode_dev_executable(pair_consumer)
|
||||
add_mnode_dev_executable(pair_inproc)
|
||||
add_mnode_dev_executable(mvlc_nng_replay)
|
||||
add_mnode_dev_executable(mesy_nng_pipeline_main)
|
||||
add_mnode_dev_executable(mesy_nng_push_pull_main)
|
||||
add_mnode_dev_executable(mesy_nng_pub_producer)
|
||||
add_mnode_dev_executable(mesy_nng_sub_consumer)
|
||||
|
||||
add_mnode_proto_dev_executable(mnode_proto_test1)
|
||||
add_mnode_proto_dev_executable(mnode_proto_ping_client)
|
||||
add_mnode_proto_dev_executable(mnode_proto_ping_server)
|
||||
add_mnode_proto_dev_executable(mnode_proto_rpc_ping_server)
|
||||
add_mnode_proto_dev_executable(mnode_proto_rpc_ping_client)
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
#include <mesytec-mvlc/mesytec-mvlc.h>
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
int main()
|
||||
{
|
||||
spdlog::set_level(spdlog::level::info);
|
||||
auto producerSocket = make_pair_socket();
|
Loading…
Reference in a new issue