diff options
author | gregory guy <[email protected]> | 2020-04-24 12:18:37 +0200 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2020-04-27 02:45:51 +0200 |
commit | 5cdb5457400812f7d9d2a92c6ee4922c4af627c7 (patch) | |
tree | 118841fa26d59800eeb57e71b12f10551a925888 /qtinterface | |
parent | e43a3c98104250fe06959b5352d17bff6e611bfb (diff) | |
download | tqtinterface-5cdb5457400812f7d9d2a92c6ee4922c4af627c7.tar.gz tqtinterface-5cdb5457400812f7d9d2a92c6ee4922c4af627c7.zip |
Allow tqtinterface to build without OpenGL support.
This should close bug 2645.
Some cosmetics here and there.
Signed-off-by: gregory guy <[email protected]>
Signed-off-by: Slávek Banko <[email protected]>
Diffstat (limited to 'qtinterface')
-rw-r--r-- | qtinterface/CMakeLists.txt | 1 | ||||
-rw-r--r-- | qtinterface/interface_tqt3/tqgl.cpp | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/qtinterface/CMakeLists.txt b/qtinterface/CMakeLists.txt index 480760b..848921c 100644 --- a/qtinterface/CMakeLists.txt +++ b/qtinterface/CMakeLists.txt @@ -20,6 +20,7 @@ include_directories( ${TQT_INCLUDE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/${IFACE} ${CMAKE_CURRENT_SOURCE_DIR}/${IFACE}/private + ${CMAKE_BINARY_DIR} ) link_directories( diff --git a/qtinterface/interface_tqt3/tqgl.cpp b/qtinterface/interface_tqt3/tqgl.cpp index 33c8bb6..3ec7177 100644 --- a/qtinterface/interface_tqt3/tqgl.cpp +++ b/qtinterface/interface_tqt3/tqgl.cpp @@ -18,6 +18,12 @@ the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #include <tqt.h> + +#ifdef HAVE_OPENGL #include <ntqgl.h> +#endif |