Unit tests are found in Linux but not in Windows #4459
-
|
I have following CMakeLists.txt in my project folder: And CMakeLists.txt in ./tests directory: I can build the project in Linux (Debian12, cmake v3.25, g++ 12.2) and run the test executable. It finds tests (right now only one test is available) and run it. |
Beta Was this translation helpful? Give feedback.
Answered by
kahlenberg
Jan 31, 2024
Replies: 1 comment
-
|
Ok I found the issue: I have to add |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
kahlenberg
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ok I found the issue:
I have to add
GTest::gtestas well, it seems onlyGTest::gtest_mainis not enough on Windows. But in Linux it works without linking toGTest::gtest