How to use nvjpegdec in CMakeLists?

Hi,
Other user may share you experience on CMake programming.

Also please keep the discussion here and not to continue on
https://devtalk.nvidia.com/default/topic/1046048/jetson-tx2/gstreamer-1-0-use-nvjpegdec-element-crash-in-c-language/post/5368672/#5368672

Multiple threads with same issue is not suggested.

I’m sorry for what I’ve done.