Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cmake building patches #19

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
cmake_minimum_required(VERSION 3.16)
include(GNUInstallDirs)

project( QwtPlot3D
VERSION 0.3.0
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion doc/Doxyfile.doxygen
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions include/qwt3d_function.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#define qwt3d_function_h

#include "qwt3d_gridmapping.h"
#include <cstdio>

namespace Qwt3D {

Expand Down