Example detector in CMakeLists.txt