What is the command to compile simple Optix programs such as optixhello.cpp? It comes with a cmake example files, but when I try to compile, it complains
CMake Error at CMakeLists.txt:33 (OPTIX_add_sample_executable): Unknown CMake command "OPTIX_add_sample_executable". -- Configuring incomplete, errors occurred! See also "/opt/NVIDIA-OptiX-SDK-4.0.1-linux64/SDK/optixHello/CMakeFiles/CMakeOutput.log".
The OPTIX_add_sample_executable() call is about the only thing in CMakeLists.txt.
I’d prefer not to have to learn how to debug cmake because I can not use cmake in my project. I just want to get simple Optix Prime examples working. What is the command to compile optixhello.cpp? Or, better yet, is there a document that explains how to compile Optix examples?