fixed object orientation

detection of several objects at the same time
do not define and use the variable you define in CMake