 index c7f2236..f8af062 100644
 --- a/CMakeLists.txt
 +++ b/CMakeLists.txt
-@@ -107,6 +107,7 @@ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/kpackage_version.h
+@@ -88,6 +88,7 @@ include(KF5PackageMacros.cmake)
  # make package_version.h available
  include_directories(${CMAKE_CURRENT_BINARY_DIR})
  

 ################# list the subdirectories #################
 if (KF5DocTools_FOUND)
     add_subdirectory(docs)
@@ -119,7 +120,10 @@ if (IS_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/po")
     endif()
 endif()
 

 add_subdirectory(autotests)
+endif()
 
 ################ create PackageConfig.cmake and install it ####################
 
-- 
2.14.3

