29 lines
1.1 KiB
CMake
29 lines
1.1 KiB
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()
|
|
|
|
if (NOT taskflow)
|
|
option(TF_BUILD_CUDA "Enables builds of cuda code" OFF)
|
|
option(TF_BUILD_TESTS "Enables builds of tests" OFF)
|
|
option(TF_BUILD_EXAMPLES "Enables builds of examples" OFF)
|
|
add_subdirectory(taskflow-3.8.0)
|
|
endif()
|