mirror of
https://github.com/boostorg/mqtt5.git
synced 2026-01-19 04:22:11 +00:00
92 lines
1.5 KiB
CMake
92 lines
1.5 KiB
CMake
#
|
|
# Copyright (c) 2025 Ivica Siladic, Bruno Iljazovic, Korina Simicevic
|
|
#
|
|
# Distributed under the Boost Software License, Version 1.0.
|
|
# (See accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt)
|
|
#
|
|
|
|
cmake_minimum_required(VERSION 3.8...3.20)
|
|
|
|
project(cmake_subdir_test LANGUAGES CXX)
|
|
|
|
add_subdirectory(../../../mqtt5 boostorg/mqtt5)
|
|
|
|
# `boostdep --brief mqtt5`
|
|
set(deps
|
|
# Primary dependencies
|
|
|
|
asio
|
|
assert
|
|
# beast # Optional dependency, boostdep finds it because of websocket.hpp
|
|
container
|
|
core
|
|
endian
|
|
random
|
|
range
|
|
smart_ptr
|
|
system
|
|
type_traits
|
|
|
|
# Secondary dependencies
|
|
|
|
align
|
|
config
|
|
context
|
|
date_time
|
|
throw_exception
|
|
bind
|
|
container_hash
|
|
intrusive
|
|
# logic # Beast dependency
|
|
mp11
|
|
optional
|
|
static_assert
|
|
# static_string # Beast dependency
|
|
# type_index # Beast dependency
|
|
winapi
|
|
move
|
|
dynamic_bitset
|
|
integer
|
|
io
|
|
utility
|
|
array
|
|
concept_check
|
|
conversion
|
|
detail
|
|
iterator
|
|
mpl
|
|
preprocessor
|
|
regex
|
|
tuple
|
|
compat
|
|
variant2
|
|
describe
|
|
pool
|
|
predef
|
|
algorithm
|
|
lexical_cast
|
|
numeric/conversion
|
|
tokenizer
|
|
fusion
|
|
exception
|
|
"function"
|
|
unordered
|
|
function_types
|
|
functional
|
|
typeof
|
|
)
|
|
|
|
foreach(dep IN LISTS deps)
|
|
add_subdirectory(../../../${dep} boostorg/${dep} EXCLUDE_FROM_ALL)
|
|
endforeach()
|
|
|
|
if (BUILD_TESTING)
|
|
add_subdirectory(../../../test boostorg/test EXCLUDE_FROM_ALL)
|
|
endif()
|
|
|
|
add_executable(main ../src/quick.cpp)
|
|
target_link_libraries(main Boost::mqtt5)
|
|
|
|
include(CTest)
|
|
add_test(main main)
|