Skip to content

Unit tests are found in Linux but not in Windows #4459

Closed Answered by kahlenberg
kahlenberg asked this question in Community Help
Discussion options

You must be logged in to vote

Ok I found the issue:

target_link_libraries(${PROJECT_NAME} 
					  PRIVATE
						  GTest::gtest_main 
						   GTest::gtest
						  GTest::gmock

I have to add GTest::gtest as well, it seems only GTest::gtest_main is not enough on Windows. But in Linux it works without linking to GTest::gtest

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by kahlenberg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant