Commit d8468cc6 authored by Benjamin Reed's avatar Benjamin Reed
Browse files

fix build on osx

svn path=/trunk/KDE/kdegames/ksudoku/; revision=671444
parent b3082e7c
find_package(OpenGL REQUIRED)
########### next target ###############
......@@ -11,6 +12,7 @@ include_directories(
# ${CMAKE_CURRENT_BINARY_DIR}/gui/export
# ${CMAKE_CURRENT_BINARY_DIR}/gui/export/draw
# ${CMAKE_CURRENT_BINARY_DIR}/logic
${OPENGL_INCLUDE_DIR}
)
set(ksudoku_SRCS
......@@ -23,7 +25,7 @@ kde4_add_executable(ksudoku ${ksudoku_SRCS})
target_link_libraries(ksudoku
ksudoku_gui ksudoku_views ksudoku_logic
${KDE4_KDEUI_LIBS} ${QT_QTOPENGL_LIBRARY} ${KDE4_KDEPRINT_LIBS} ${KDE4_KIO_LIBS} GL GLU ${KDE4_KNEWSTUFF2_LIBRARY}
${KDE4_KDEUI_LIBS} ${QT_QTOPENGL_LIBRARY} ${KDE4_KDEPRINT_LIBS} ${KDE4_KIO_LIBS} ${OPENGL_LIBRARIES} ${KDE4_KNEWSTUFF2_LIBRARY}
) #ksudoku_export ksudoku_draw
install(TARGETS ksudoku DESTINATION ${BIN_INSTALL_DIR} )
......
......@@ -20,9 +20,6 @@
#ifndef _ArcBall_h
#define _ArcBall_h
#include <GL/gl.h> // Header File For The OpenGL32 Library
#include <GL/glu.h> // Header File For The GLu32 Library
#include "math.h" // Needed for sqrtf
// 8<--Snip here if you have your own math types/funcs-->8
......@@ -34,6 +31,15 @@
# define assert(x) { }
#endif
#include <QtGlobal>
#ifdef Q_WS_MAC
#include <OpenGL/gl.h>
#include <OpenGL/glu.h>
#else
#include <GL/gl.h> // Header File For The OpenGL32 Library
#include <GL/glu.h> // Header File For The GLu32 Library
#endif
//Math types derived from the KempoApi tMath library
typedef union Tuple2f_t
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment