Skip to content

Commit

Permalink
add module.cpp file
Browse files Browse the repository at this point in the history
  • Loading branch information
parvathika committed Dec 5, 2024
1 parent 59a441a commit 653675c
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Tests/mocks/Module.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#include "Module.h"

MODULE_NAME_DECLARATION(BUILD_REFERENCE)
8 changes: 8 additions & 0 deletions Tests/mocks/Module.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#pragma once

#ifndef MODULE_NAME
#define MODULE_NAME tests
#endif

#include <core/core.h>
#include <plugins/plugins.h>
8 changes: 8 additions & 0 deletions Tests/unit_test/tests.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,13 @@ target_include_directories(${UNIT_TEST} PRIVATE

target_link_libraries(${UNIT_TEST} PRIVATE gmock_main ${NAMESPACE}Core::${NAMESPACE}Core ${GLIB_LIBRARIES} ${GIO_LIBRARIES} ${LIBNM_LIBRARIES} ${CURL_LIBRARIES})
target_include_directories(${UNIT_TEST} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR})

target_include_directories(${UNIT_TEST} PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
$<INSTALL_INTERFACE:include>
../mocks/thunder
${CMAKE_CURRENT_SOURCE_DIR}/../../OCIContainer/stubs
)

install(TARGETS ${UNIT_TEST} DESTINATION ${CMAKE_INSTALL_PREFIX}/bin)

0 comments on commit 653675c

Please sign in to comment.