diff --git a/CMakeLists.txt b/CMakeLists.txt index 5d3180a5..1c97c664 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,3 +1,15 @@ +# +# telekom / sysrepo-plugin-system +# +# This program is made available under the terms of the +# BSD 3-Clause license which is available at +# https://opensource.org/licenses/BSD-3-Clause +# +# SPDX-FileCopyrightText: 2022 Deutsche Telekom AG +# SPDX-FileContributor: Sartura Ltd. +# +# SPDX-License-Identifier: BSD-3-Clause +# cmake_minimum_required(VERSION 3.0) project(sysrepo-interfaces-plugins C) diff --git a/CompileOptions.cmake b/CompileOptions.cmake index fbe23896..53f1c42b 100644 --- a/CompileOptions.cmake +++ b/CompileOptions.cmake @@ -1,3 +1,15 @@ +# +# telekom / sysrepo-plugin-system +# +# This program is made available under the terms of the +# BSD 3-Clause license which is available at +# https://opensource.org/licenses/BSD-3-Clause +# +# SPDX-FileCopyrightText: 2022 Deutsche Telekom AG +# SPDX-FileContributor: Sartura Ltd. +# +# SPDX-License-Identifier: BSD-3-Clause +# set(CMAKE_EXPORT_COMPILE_COMMANDS ON) set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c11") diff --git a/LogOptions.cmake b/LogOptions.cmake index da761851..84e1cf16 100644 --- a/LogOptions.cmake +++ b/LogOptions.cmake @@ -1,3 +1,15 @@ +# +# telekom / sysrepo-plugin-system +# +# This program is made available under the terms of the +# BSD 3-Clause license which is available at +# https://opensource.org/licenses/BSD-3-Clause +# +# SPDX-FileCopyrightText: 2022 Deutsche Telekom AG +# SPDX-FileContributor: Sartura Ltd. +# +# SPDX-License-Identifier: BSD-3-Clause +# option(ENABLE_LOG_LOG "Enable log messages" ON) option(ENABLE_LOG_WARNING "Enable warning messages" ON) option(ENABLE_LOG_ERROR "Enable error messages" ON) diff --git a/src/interfaces/CMakeLists.txt b/src/interfaces/CMakeLists.txt index 8ac11d4c..0f7866a4 100644 --- a/src/interfaces/CMakeLists.txt +++ b/src/interfaces/CMakeLists.txt @@ -1,3 +1,15 @@ +# +# telekom / sysrepo-plugin-system +# +# This program is made available under the terms of the +# BSD 3-Clause license which is available at +# https://opensource.org/licenses/BSD-3-Clause +# +# SPDX-FileCopyrightText: 2022 Deutsche Telekom AG +# SPDX-FileContributor: Sartura Ltd. +# +# SPDX-License-Identifier: BSD-3-Clause +# cmake_minimum_required(VERSION 3.0) project(sysrepo-plugin-interfaces C) diff --git a/src/interfaces/tests/CMakeLists.txt b/src/interfaces/tests/CMakeLists.txt index 1fbb933b..8029f3d6 100644 --- a/src/interfaces/tests/CMakeLists.txt +++ b/src/interfaces/tests/CMakeLists.txt @@ -1,5 +1,18 @@ +# +# telekom / sysrepo-plugin-system +# +# This program is made available under the terms of the +# BSD 3-Clause license which is available at +# https://opensource.org/licenses/BSD-3-Clause +# +# SPDX-FileCopyrightText: 2022 Deutsche Telekom AG +# SPDX-FileContributor: Sartura Ltd. +# +# SPDX-License-Identifier: BSD-3-Clause +# set(INTERFACES_UTEST_NAME "interfaces_utest") set(UTILS_MEMORY_LIBRARY_NAME "utils_memory") + # for wrapping cmocka mock functions set( INTERFACES_UTEST_LINKER_OPTIONS @@ -11,14 +24,17 @@ add_executable( ${CMAKE_SOURCE_DIR}/src/interfaces/tests/interfaces_utest.c ) + target_include_directories( ${INTERFACES_UTEST_NAME} PUBLIC ${CMAKE_SOURCE_DIR}/src/interfaces/src ) + target_link_options( ${INTERFACES_UTEST_NAME} PRIVATE ${INTERFACES_UTEST_LINKER_OPTIONS} ) + target_link_libraries( ${INTERFACES_UTEST_NAME} @@ -27,6 +43,7 @@ target_link_libraries( ${SYSREPO_LIBRARIES} ${LIBYANG_LIBRARIES} ) + add_test( NAME ${INTERFACES_UTEST_NAME} COMMAND interfaces_utest