diff --git a/CMakeLists.txt b/CMakeLists.txt
index 12657be..c14ca89 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,4 +1,5 @@
 cmake_minimum_required(VERSION 3.16)
+include(GNUInstallDirs)
 
 project( QwtPlot3D
   VERSION 0.3.0
@@ -104,8 +105,12 @@ set( HEADERS
   "include/qwt3d_io_gl2ps.h"
   )
 configure_file( "include/qwt3d_version.h.in" "qwt3d_version.h" @ONLY )
+list( APPEND HEADERS
+    "${CMAKE_BINARY_DIR}/qwt3d_version.h"
+    )
 
 add_library( qwtplot3d ${SRCS} ${HEADERS} )
+set_target_properties( qwtplot3d PROPERTIES PUBLIC_HEADER "${HEADERS}" )
 
 target_link_libraries( qwtplot3d
   Qt${QT_VERSION_MAJOR}::Core
