2024-12-07 16:48:24 +01:00
|
|
|
set(MVLC_NNG_MNODE_WARN_FLAGS -Wall -Wextra -Wpedantic)
|
2023-06-27 20:19:58 +02:00
|
|
|
|
|
|
|
#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()
|
|
|
|
|
2024-12-12 00:31:03 +01:00
|
|
|
add_library(mesytec-mnode mnode_nng.cc mnode_nng_async.cc mnode_nng_proto.cc)
|
2024-12-07 20:35:29 +01:00
|
|
|
target_include_directories(mesytec-mnode
|
|
|
|
PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/../include>
|
|
|
|
PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/mesytec-mnode)
|
2024-12-12 00:31:03 +01:00
|
|
|
target_link_libraries(mesytec-mnode PUBLIC nng mnode-proto PRIVATE spdlog)
|
2024-12-07 20:35:29 +01:00
|
|
|
target_compile_features(mesytec-mnode PRIVATE cxx_std_17)
|
2024-11-23 03:05:05 +01:00
|
|
|
|
2024-12-17 18:19:31 +01:00
|
|
|
add_subdirectory(tools)
|
2023-06-27 23:17:56 +02:00
|
|
|
|
2023-06-27 20:19:58 +02:00
|
|
|
|
2024-11-23 02:38:13 +01:00
|
|
|
#add_subdirectory(qt)
|
|
|
|
|
2023-06-27 20:19:58 +02:00
|
|
|
#unset(CMAKE_C_CLANG_TIDY)
|
|
|
|
#unset(CMAKE_CXX_CLANG_TIDY)
|