Skip to content

Commit

Permalink
test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
cmuhammedrafi committed Aug 28, 2024
1 parent bc3748e commit 384b00c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ if(ENABLE_GNOME_NETWORKMANAGER)
pkg_check_modules(GLIB REQUIRED glib-2.0)
pkg_check_modules(LIBNM REQUIRED libnm)
else()
find_package(IARMBus REQUIRED)
find_package(IARMBus)
include(Tests/l1networkmanager.cmake)
endif ()


Expand Down
4 changes: 2 additions & 2 deletions l1networkmanager.cmake → Tests/l1networkmanager.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ message("Building for unit tests...")

message("Generating empty headers to suppress compiler errors")

file(GLOB BASEDIR Tests)
file(GLOB BASEDIR "${CMAKE_CURRENT_SOURCE_DIR}")
set(BASEDIR ${BASEDIR}/headers)
set(EMPTY_HEADERS_DIRS
${BASEDIR}
Expand Down Expand Up @@ -33,7 +33,7 @@ include_directories(${EMPTY_HEADERS_DIRS})

message("Adding compiler and linker options for all targets")

file(GLOB BASEDIR Tests/mocks)
file(GLOB BASEDIR mocks)
set(FAKE_HEADERS
${BASEDIR}/Iarm.h
)
Expand Down

0 comments on commit 384b00c

Please sign in to comment.