70 lines
3.3 KiB
CMake
70 lines
3.3 KiB
CMake
set(MVLC_NNG_NODE_WARN_FLAGS -Wall -Wextra -Wpedantic)
|
|
|
|
# Bit of a hack to set the variables here. If set earlier clang-tidy will for
|
|
# some reason pickup log.c and warn about some va_list stuff. Might be because
|
|
# log.c is in the source directory as the same does not happen with the imgui
|
|
# object library. TODO: move logc to externals.
|
|
#find_program(CLANG_TIDY_EXECUTABLE clang-tidy)
|
|
#if (CLANG_TIDY_EXECUTABLE)
|
|
# set(CMAKE_C_CLANG_TIDY clang-tidy -p ${CMAKE_BINARY_DIR} --extra-arg=-std=c11)
|
|
# set(CMAKE_CXX_CLANG_TIDY clang-tidy -p ${CMAKE_BINARY_DIR} --extra-arg=-std=c++17)
|
|
#endif()
|
|
|
|
#add_library(dp_common dp_common.c)
|
|
#target_compile_features(dp_common PRIVATE c_std_11)
|
|
#target_compile_options(dp_common PUBLIC ${DP_WARN_FLAGS}) # spread warning flags
|
|
#target_link_libraries(dp_common
|
|
# PUBLIC logc
|
|
# PUBLIC nng
|
|
# PUBLIC Threads::Threads
|
|
#)
|
|
#target_include_directories(dp_common INTERFACE ${CMAKE_CURRENT_SOURCE_DIR})
|
|
|
|
add_executable(pair_producer pair_producer.cc)
|
|
target_compile_features(pair_producer PRIVATE cxx_std_17)
|
|
target_link_libraries(pair_producer PRIVATE mesytec-mvlc PRIVATE nng)
|
|
target_compile_options(pair_producer PRIVATE ${MVLC_NNG_NODE_WARN_FLAGS})
|
|
|
|
add_executable(pair_consumer pair_consumer.cc)
|
|
target_compile_features(pair_consumer PRIVATE cxx_std_17)
|
|
target_link_libraries(pair_consumer PRIVATE mesytec-mvlc PRIVATE nng)
|
|
target_compile_options(pair_consumer PRIVATE ${MVLC_NNG_NODE_WARN_FLAGS})
|
|
|
|
add_executable(pair_inproc pair_inproc.cc)
|
|
target_compile_features(pair_inproc PRIVATE cxx_std_17)
|
|
target_link_libraries(pair_inproc PRIVATE mesytec-mvlc PRIVATE nng)
|
|
target_compile_options(pair_inproc PRIVATE ${MVLC_NNG_NODE_WARN_FLAGS})
|
|
|
|
add_executable(mvlc_nng_replay mvlc_nng_replay.cc)
|
|
target_compile_features(mvlc_nng_replay PRIVATE cxx_std_17)
|
|
target_link_libraries(mvlc_nng_replay PRIVATE mesytec-mvlc PRIVATE nng)
|
|
target_compile_options(mvlc_nng_replay PRIVATE ${MVLC_NNG_NODE_WARN_FLAGS})
|
|
|
|
add_executable(mesy_nng_pipeline_main mesy_nng_pipeline_main.cc)
|
|
target_compile_features(mesy_nng_pipeline_main PRIVATE cxx_std_17)
|
|
target_link_libraries(mesy_nng_pipeline_main PRIVATE mesytec-mvlc PRIVATE nng)
|
|
target_compile_options(mesy_nng_pipeline_main PRIVATE ${MVLC_NNG_NODE_WARN_FLAGS})
|
|
|
|
add_executable(mesy_nng_push_pull_main mesy_nng_push_pull_main.cc)
|
|
target_compile_features(mesy_nng_push_pull_main PRIVATE cxx_std_17)
|
|
target_link_libraries(mesy_nng_push_pull_main PRIVATE mesytec-mvlc PRIVATE nng)
|
|
target_compile_options(mesy_nng_push_pull_main PRIVATE ${MVLC_NNG_NODE_WARN_FLAGS})
|
|
|
|
add_executable(mesy_nng_pub_producer pub_producer.cc)
|
|
target_compile_features(mesy_nng_pub_producer PRIVATE cxx_std_17)
|
|
target_link_libraries(mesy_nng_pub_producer PRIVATE mesytec-mvlc PRIVATE nng)
|
|
target_compile_options(mesy_nng_pub_producer PRIVATE ${MVLC_NNG_NODE_WARN_FLAGS})
|
|
|
|
add_executable(mesy_nng_sub_consumer sub_consumer.cc)
|
|
target_compile_features(mesy_nng_sub_consumer PRIVATE cxx_std_17)
|
|
target_link_libraries(mesy_nng_sub_consumer PRIVATE mesytec-mvlc PRIVATE nng)
|
|
target_compile_options(mesy_nng_sub_consumer PRIVATE ${MVLC_NNG_NODE_WARN_FLAGS})
|
|
|
|
add_executable(mnode-proto-test1 mnode_proto_test1.cc thread_name.cc)
|
|
target_link_libraries(mnode-proto-test1 PRIVATE mnode-proto PRIVATE mesytec-mvlc PRIVATE nng)
|
|
|
|
#add_subdirectory(nng)
|
|
#add_subdirectory(qt)
|
|
|
|
#unset(CMAKE_C_CLANG_TIDY)
|
|
#unset(CMAKE_CXX_CLANG_TIDY)
|