fixed object orientation

detection of several objects at the same time
add a CMake option for debug set to OFF by default. When set to ON, define a variable that will be used inside C++ (instead of your desktop one)