cmake-examples
cmake-examples copied to clipboard
some examples not support cross platform like windows
when I learn 01-basic/e-installing part, the compiler cl.exe find for **.lib not **.dll and I google some resolutions for it below set(cmake_windows_export_all_symbols on) after writing that line, I can compile correctly.
so do those examples consider cross platform issues? and thank you for this wonderful repository to us to learn CMake!
Thank you for this. I have the same issue.
This link may help. https://gernotklingler.com/blog/creating-using-shared-libraries-different-compilers-different-operating-systems/
Thanks for the info. I haven't used cmake on windows and don't have a windows PC to be able to re-test things.
If someone wants to take the time to update the docs and / or code with tests on windows, then I can review and merge them.
ndows, then I can review an
PS F:\stereo-camera-lib\build> ctest
Test project F:/stereo-camera-lib/build
Start 1: test_all
1/1 Test #1: test_all .........................Exit code 0xc0000135
***Exception: 0.01 sec
0% tests passed, 1 tests failed out of 1
Total Test time (real) = 0.03 sec
The following tests FAILED:
1 - test_all (Exit code 0xc0000135
)
Errors while running CTest
CTest return false in windows, may be you can use workflow to test it in windows (https://github.com/google/googletest/issues/2791)[https://github.com/google/googletest/issues/2791] here may be help