Drop use of DETECT_LIBKIPI macro and move relevant part to CMakeLists.txt

Authored by asturmlechner on Apr 21 2019, 1:18 PM.