Skip to content

Commit

Permalink
Google test target renamed to avoid conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
giuliom committed Jul 17, 2024
1 parent a13a84c commit 3b8905a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,17 @@ FetchContent_MakeAvailable(googletest)
enable_testing()

file (GLOB TESTS "${CMAKE_CURRENT_SOURCE_DIR}/test/*.h" "${CMAKE_CURRENT_SOURCE_DIR}/test/*.cpp")
add_executable(LibTest ${TESTS})
add_executable(BasicCppTest ${TESTS})

target_link_libraries(
LibTest
BasicCppTest
GTest::gtest_main
)

target_include_directories(LibTest PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/include/")
target_include_directories(BasicCppTest PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/include/")

include(GoogleTest)
gtest_discover_tests(LibTest)
gtest_discover_tests(BasicCppTest)

# ------ BasicCppLibrary ----- #

Expand Down

0 comments on commit 3b8905a

Please sign in to comment.