Skip to content

Commit

Permalink
Include license info in all CMake files
Browse files Browse the repository at this point in the history
  • Loading branch information
zinccyy committed Dec 14, 2022
1 parent 1f91b6d commit f6133e8
Show file tree
Hide file tree
Showing 5 changed files with 65 additions and 0 deletions.
12 changes: 12 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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)

Expand Down
12 changes: 12 additions & 0 deletions CompileOptions.cmake
Original file line number Diff line number Diff line change
@@ -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")
Expand Down
12 changes: 12 additions & 0 deletions LogOptions.cmake
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
12 changes: 12 additions & 0 deletions src/interfaces/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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)

Expand Down
17 changes: 17 additions & 0 deletions src/interfaces/tests/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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}

Expand All @@ -27,6 +43,7 @@ target_link_libraries(
${SYSREPO_LIBRARIES}
${LIBYANG_LIBRARIES}
)

add_test(
NAME ${INTERFACES_UTEST_NAME}
COMMAND interfaces_utest
Expand Down

0 comments on commit f6133e8

Please sign in to comment.