how to directly run ./test, instead of __NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia ./test
is there something can be added to the code, or CMake, or makefile?
./test ;
sudo prime-select nvidia , then ./test
these 2 methods above both NOT work…