set(cmakeFiles FindQJSON.cmake)

if(KDE4_USE_COMMON_CMAKE_PACKAGE_CONFIG_DIR)
    set(_qjson_CONFIG_DEST "${LIB_INSTALL_DIR}/cmake/qjson")
else(KDE4_USE_COMMON_CMAKE_PACKAGE_CONFIG_DIR)
    set(_qjson_CONFIG_DEST "${LIB_INSTALL_DIR}/qjson")
endif(KDE4_USE_COMMON_CMAKE_PACKAGE_CONFIG_DIR)

install(FILES ${cmakeFiles} DESTINATION "${_qjson_CONFIG_DEST}")

set(cmakeFiles FindQJSON.cmake)
install(FILES ${cmakeFiles} DESTINATION ${CMAKE_MODULES_INSTALL_DIR})

Revert "fix installation of FindQJSON.cmake when not installing as root" It doesn't allow to properly define where FindQJSON.cmake is goint to be installed.
Revert "fix installation of FindQJSON.cmake when not installing as root"
It doesn't allow to properly define where FindQJSON.cmake is goint to be
installed.

This reverts commit 235e82e5f63e5b1465783647d5e612e253de4247.
