CMakeLists.txt
688 Bytes
cmake_minimum_required(VERSION 3.0)
project(osdev_mqtt)
LIST(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/submodules/cmake)
# ==============================================================================
# = Include build information
include(projectheader)
project_header(osdev_mqtt)
add_subdirectory(src)
if(ENABLE_EXAMPLES STREQUAL "ON")
add_subdirectory(examples/connect)
add_subdirectory(examples/pub)
add_subdirectory(examples/sub)
add_subdirectory(examples/subunsub)
endif()
if(ENABLE_TESTS STREQUAL "ON")
add_subdirectory(test)
endif()
if(ENABLE_TOOLS STREQUAL "ON")
add_subdirectory(tools/publish_cli)
endif()
include(packaging)
package_component()