Skip to content

Commit

Permalink
#45: Maybe fixed build in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
aul12 committed Dec 29, 2022
1 parent 5cf1160 commit 48e22ec
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
19 changes: 10 additions & 9 deletions Tests/LowLevel/Mock/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
# Download GTest
include(FetchContent)
FetchContent_Declare(
gtest
GIT_REPOSITORY "https://github.com/google/googletest.git"
GIT_TAG "main"
)
FetchContent_MakeAvailable(gtest)

# Load mocking lib
add_subdirectory(Lib)

set(MockedModules
Expand Down Expand Up @@ -84,15 +94,6 @@ foreach (MockedModule ${MockedSystemModules})
target_include_directories(${MockLibTarget} INTERFACE ${CMAKE_CURRENT_BINARY_DIR}/Mock)
endforeach ()

# Download GTest
include(FetchContent)
FetchContent_Declare(
gtest
GIT_REPOSITORY "https://github.com/google/googletest.git"
GIT_TAG "main"
)
FetchContent_MakeAvailable(gtest)

set(AllTests)

# Function to build a mock test for a module
Expand Down
1 change: 1 addition & 0 deletions Tests/LowLevel/Mock/Lib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ project(MockLib)

add_library(${PROJECT_NAME} INTERFACE)
target_include_directories(${PROJECT_NAME} INTERFACE ..)
target_link_libraries(${PROJECT_NAME} PUBLIC gtest gmock pthread)

0 comments on commit 48e22ec

Please sign in to comment.