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 diff --git a/doc/Doxyfile.doxygen b/doc/Doxyfile.doxygen index 8910fb7..aab863a 100644 --- a/doc/Doxyfile.doxygen +++ b/doc/Doxyfile.doxygen @@ -181,7 +181,7 @@ ENABLE_PREPROCESSING = YES MACRO_EXPANSION = NO EXPAND_ONLY_PREDEF = NO SEARCH_INCLUDES = YES -INCLUDE_PATH = V:/cvs/qwtplot3d/include/ +INCLUDE_PATH = ../include/ INCLUDE_FILE_PATTERNS = *.h PREDEFINED = QWT3D_NOT_FOR_DOXYGEN \ QT_VERSION=0x040000 diff --git a/include/qwt3d_function.h b/include/qwt3d_function.h index 640ae39..807d29c 100644 --- a/include/qwt3d_function.h +++ b/include/qwt3d_function.h @@ -2,6 +2,7 @@ #define qwt3d_function_h #include "qwt3d_gridmapping.h" +#include namespace Qwt3D {