22 lines
874 B
CMake
22 lines
874 B
CMake
find_package(nng QUIET)
|
|
if(NOT nng)
|
|
message(STATUS "${CMAKE_PROJECT_NAME}: Using nng from ${CMAKE_CURRENT_SOURCE_DIR}/nng")
|
|
option(NNG_SETSTACKSIZE "Use rlimit for thread stack size" ON)
|
|
set(NNG_TESTS OFF)
|
|
set(NNG_ENABLE_NNGCAT ON)
|
|
add_subdirectory(nng)
|
|
endif()
|
|
|
|
if (NOT TARGET spdlog)
|
|
message(STATUS "${CMAKE_PROJECT_NAME}: Using spdlog from ${CMAKE_CURRENT_SOURCE_DIR}/spdlog")
|
|
option(SPDLOG_FMT_EXTERNAL "Use external fmt library instead of bundled" OFF)
|
|
option(SPDLOG_INSTALL "Generate the install target" OFF)
|
|
add_subdirectory(spdlog-1.14.0)
|
|
set_target_properties(spdlog PROPERTIES POSITION_INDEPENDENT_CODE ON)
|
|
endif()
|
|
|
|
find_package(mesytec-mvlc QUIET)
|
|
if (NOT mesytec-mvlc)
|
|
message(STATUS "${CMAKE_PROJECT_NAME}: Using mesytec-mvlc from ${CMAKE_CURRENT_SOURCE_DIR}/mesytec-mvlc")
|
|
add_subdirectory(mesytec-mvlc)
|
|
endif()
|