wakaama/CMakeLists.txt
Lukas Woodtli b377a138ac cmake: Add option for disabling unit tests
Building the unit tests can now be disabled with a CMake cache variable.
This is useful on platforms where `CUnit` is not available or when
working on an embedded platform.
2025-02-24 09:00:08 +01:00

13 lines
222 B
CMake

cmake_minimum_required(VERSION 3.21)
project(wakaama C)
include(wakaama.cmake)
option(WAKAAMA_UNIT_TESTS "Enable build of Unit Tests" ON)
if(WAKAAMA_UNIT_TESTS)
enable_testing()
add_subdirectory(tests)
endif()