mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 18:23:54 +02:00
dynamic header for GLUT include
This commit is contained in:
parent
9ab476d3ee
commit
13a0597ab6
15 changed files with 37 additions and 39 deletions
|
@ -2,14 +2,20 @@ cmake_minimum_required(VERSION 2.8)
|
|||
|
||||
project(interface)
|
||||
|
||||
file(GLOB INTERFACE_SRCS src/*.cpp src/*.h)
|
||||
|
||||
add_executable(interface ${INTERFACE_SRCS})
|
||||
|
||||
if (APPLE)
|
||||
set(CMAKE_EXE_LINKER_FLAGS "-framework CoreAudio -framework AudioToolbox -framework AudioUnit -framework CoreServices -framework Carbon")
|
||||
set(GLUT_HEADER_INCLUDE "<GLUT/glut.h>")
|
||||
else (APPLE)
|
||||
set(GLUT_HEADER_INCLUDE "<GL/glut.h>")
|
||||
endif (APPLE)
|
||||
|
||||
configure_file(InterfaceConfig.h.in ${PROJECT_BINARY_DIR}/includes/InterfaceConfig.h)
|
||||
|
||||
file(GLOB INTERFACE_SRCS src/*.cpp src/*.h)
|
||||
include_directories(${PROJECT_BINARY_DIR}/includes)
|
||||
|
||||
add_executable(interface ${INTERFACE_SRCS})
|
||||
|
||||
find_package(OpenGL REQUIRED)
|
||||
find_package(GLUT REQUIRED)
|
||||
find_package(GLM REQUIRED)
|
||||
|
|
14
interface/InterfaceConfig.h.in
Normal file
14
interface/InterfaceConfig.h.in
Normal file
|
@ -0,0 +1,14 @@
|
|||
//
|
||||
// InterfaceConfig.h
|
||||
// interface
|
||||
//
|
||||
// Created by Stephen Birarda on 2/8/13.
|
||||
// Copyright (c) 2013 High Fidelity, Inc.. All rights reserved.
|
||||
//
|
||||
|
||||
#ifndef interface__InterfaceConfig__
|
||||
#define interface__InterfaceConfig__
|
||||
|
||||
#include @GLUT_HEADER_INCLUDE@
|
||||
|
||||
#endif
|
|
@ -12,7 +12,7 @@
|
|||
#include <glm/glm.hpp>
|
||||
#include "Util.h"
|
||||
#include "world.h"
|
||||
#include <GLUT/glut.h>
|
||||
#include "InterfaceConfig.h"
|
||||
#include <iostream>
|
||||
|
||||
class VoxelSystem {
|
||||
|
|
|
@ -9,11 +9,7 @@
|
|||
#ifndef __interface__Field__
|
||||
#define __interface__Field__
|
||||
|
||||
#ifdef __APPLE__
|
||||
#include <GLUT/glut.h>
|
||||
#else
|
||||
#include <GL/glut.h>
|
||||
#endif
|
||||
#include "InterfaceConfig.h"
|
||||
#include <iostream>
|
||||
#include "world.h"
|
||||
#include "Util.h"
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
#include <glm/glm.hpp>
|
||||
#include "Util.h"
|
||||
#include "world.h"
|
||||
#include <GLUT/glut.h>
|
||||
#include "InterfaceConfig.h"
|
||||
|
||||
#include <iostream>
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
#include "Util.h"
|
||||
#include "Field.h"
|
||||
#include "world.h"
|
||||
#include <GLUT/glut.h>
|
||||
#include "InterfaceConfig.h"
|
||||
|
||||
const float RADIUS_RANGE = 10.0;
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
#include <iostream>
|
||||
#include "Field.h"
|
||||
#include "world.h"
|
||||
#include <GLUT/glut.h>
|
||||
#include "InterfaceConfig.h"
|
||||
#include "SerialInterface.h"
|
||||
|
||||
enum eyeContactTargets {LEFT_EYE, RIGHT_EYE, MOUTH};
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
#include <glm/glm.hpp>
|
||||
#include "Util.h"
|
||||
#include "world.h"
|
||||
#include <GLUT/glut.h>
|
||||
#include "InterfaceConfig.h"
|
||||
#include <iostream>
|
||||
|
||||
class Lattice {
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
#include <glm/glm.hpp>
|
||||
#include "Util.h"
|
||||
#include "World.h"
|
||||
#include <GLUT/glut.h>
|
||||
#include "InterfaceConfig.h"
|
||||
#include <iostream>
|
||||
|
||||
class Oscilloscope {
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
#include <glm/glm.hpp>
|
||||
#include "Util.h"
|
||||
#include "world.h"
|
||||
#include <GLUT/glut.h>
|
||||
#include "InterfaceConfig.h"
|
||||
|
||||
class ParticleSystem {
|
||||
public:
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
#include <glm/glm.hpp>
|
||||
#include "util.h"
|
||||
#include "world.h"
|
||||
#include <GLUT/glut.h>
|
||||
#include "InterfaceConfig.h"
|
||||
#include <iostream>
|
||||
|
||||
// These includes are for serial port reading/writing
|
||||
|
|
|
@ -8,11 +8,7 @@
|
|||
|
||||
#include "Texture.h"
|
||||
|
||||
#ifdef __APPLE__
|
||||
#include <GLUT/glut.h>
|
||||
#else
|
||||
#include <GL/glut.h>
|
||||
#endif
|
||||
#include "InterfaceConfig.h"
|
||||
#include <LodePNG/lodepng.h>
|
||||
#include <vector>
|
||||
#include <cstdio>
|
||||
|
|
|
@ -10,11 +10,7 @@
|
|||
#define __interface__Texture__
|
||||
|
||||
#include <iostream>
|
||||
#ifdef __APPLE__
|
||||
#include <GLUT/glut.h>
|
||||
#else
|
||||
#include <GL/glut.h>
|
||||
#endif
|
||||
#include "InterfaceConfig.h"
|
||||
|
||||
int load_png_as_texture(char* filename);
|
||||
|
||||
|
|
|
@ -6,11 +6,7 @@
|
|||
// Copyright (c) 2012 High Fidelity, Inc. All rights reserved.
|
||||
//
|
||||
|
||||
#ifdef __APPLE__
|
||||
#include <GLUT/glut.h>
|
||||
#else
|
||||
#include <GL/glut.h>
|
||||
#endif
|
||||
#include "InterfaceConfig.h"
|
||||
#include <iostream>
|
||||
#include "world.h"
|
||||
#include <glm/glm.hpp>
|
||||
|
|
|
@ -16,13 +16,9 @@
|
|||
|
||||
//#define MARKER_CAPTURE // yep.
|
||||
|
||||
#ifdef __APPLE__
|
||||
#include <GLUT/glut.h>
|
||||
#include "InterfaceConfig.h"
|
||||
#include <OpenGL/gl.h>
|
||||
#include <OpenGL/glext.h>
|
||||
#else
|
||||
#include <GL/glut.h>
|
||||
#endif
|
||||
#include <iostream>
|
||||
#include <fstream>
|
||||
#include <math.h>
|
||||
|
@ -38,8 +34,6 @@
|
|||
#include <termios.h>
|
||||
#include <glm/glm.hpp>
|
||||
|
||||
// Bring in OpenCV
|
||||
|
||||
#include "SerialInterface.h"
|
||||
#include "Field.h"
|
||||
#include "world.h"
|
||||
|
|
Loading…
Reference in a new issue