mirror of
https://github.com/lubosz/overte.git
synced 2025-04-09 08:22:30 +02:00
don't use find module for glm/portaudio
This commit is contained in:
parent
0ad551c86d
commit
f9b8d6cde0
18 changed files with 22 additions and 83 deletions
|
@ -1,10 +1,10 @@
|
|||
cmake_minimum_required(VERSION 2.8)
|
||||
|
||||
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/modules/")
|
||||
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "bin/")
|
||||
|
||||
project(hifi)
|
||||
|
||||
set(GLM_ROOT_DIR "${CMAKE_SOURCE_DIR}/thirdparty")
|
||||
set(GLM_DIR "${CMAKE_SOURCE_DIR}/thirdparty/glm")
|
||||
set(PORTAUDIO_DIR "${CMAKE_SOURCE_DIR}/thirdparty/PortAudio")
|
||||
|
||||
add_subdirectory(interface)
|
|
@ -1,63 +0,0 @@
|
|||
# FindGLM - attempts to locate the glm matrix/vector library.
|
||||
#
|
||||
# This module defines the following variables (on success):
|
||||
# GLM_INCLUDE_DIRS - where to find glm/glm.hpp
|
||||
# GLM_FOUND - if the library was successfully located
|
||||
#
|
||||
# It is trying a few standard installation locations, but can be customized
|
||||
# with the following variables:
|
||||
# GLM_ROOT_DIR - root directory of a glm installation
|
||||
# Headers are expected to be found in either:
|
||||
# <GLM_ROOT_DIR>/glm/glm.hpp OR
|
||||
# <GLM_ROOT_DIR>/include/glm/glm.hpp
|
||||
# This variable can either be a cmake or environment
|
||||
# variable. Note however that changing the value
|
||||
# of the environment varible will NOT result in
|
||||
# re-running the header search and therefore NOT
|
||||
# adjust the variables set by this module.
|
||||
|
||||
#=============================================================================
|
||||
# Copyright 2012 Carsten Neumann
|
||||
#
|
||||
# Distributed under the OSI-approved BSD License (the "License");
|
||||
# see accompanying file Copyright.txt for details.
|
||||
#
|
||||
# This software is distributed WITHOUT ANY WARRANTY; without even the
|
||||
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
# See the License for more information.
|
||||
#=============================================================================
|
||||
# (To distribute this file outside of CMake, substitute the full
|
||||
# License text for the above reference.)
|
||||
|
||||
# default search dirs
|
||||
SET(_glm_HEADER_SEARCH_DIRS
|
||||
"/usr/include"
|
||||
"/usr/local/include")
|
||||
|
||||
# check environment variable
|
||||
SET(_glm_ENV_ROOT_DIR "$ENV{GLM_ROOT_DIR}")
|
||||
|
||||
IF(NOT GLM_ROOT_DIR AND _glm_ENV_ROOT_DIR)
|
||||
SET(GLM_ROOT_DIR "${_glm_ENV_ROOT_DIR}")
|
||||
ENDIF(NOT GLM_ROOT_DIR AND _glm_ENV_ROOT_DIR)
|
||||
|
||||
# put user specified location at beginning of search
|
||||
IF(GLM_ROOT_DIR)
|
||||
SET(_glm_HEADER_SEARCH_DIRS "${GLM_ROOT_DIR}"
|
||||
"${GLM_ROOT_DIR}/include"
|
||||
${_glm_HEADER_SEARCH_DIRS})
|
||||
ENDIF(GLM_ROOT_DIR)
|
||||
|
||||
# locate header
|
||||
FIND_PATH(GLM_INCLUDE_DIR "glm/glm.hpp"
|
||||
PATHS ${_glm_HEADER_SEARCH_DIRS})
|
||||
|
||||
INCLUDE(FindPackageHandleStandardArgs)
|
||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(GLM DEFAULT_MSG
|
||||
GLM_INCLUDE_DIR)
|
||||
|
||||
IF(GLM_FOUND)
|
||||
SET(GLM_INCLUDE_DIRS "${GLM_INCLUDE_DIR}")
|
||||
|
||||
MESSAGE(STATUS "GLM_INCLUDE_DIR = ${GLM_INCLUDE_DIR}")
|
||||
ENDIF(GLM_FOUND)
|
|
@ -6,6 +6,8 @@ file(GLOB INTERFACE_SRCS src/*.cpp src/*.h)
|
|||
|
||||
add_executable(interface ${INTERFACE_SRCS})
|
||||
|
||||
find_package(GLM REQUIRED)
|
||||
include_directories(${GLM_INCLUDE_DIRS})
|
||||
target_link_libraries(interface GLM)
|
||||
include_directories(${GLM_DIR})
|
||||
target_link_libraries(interface GLM)
|
||||
|
||||
include_directories(${PORTAUDIO_DIR})
|
||||
target_link_libraries(interface ${PORTAUDIO_DIR}/libportaudio.a)
|
|
@ -9,7 +9,7 @@
|
|||
#ifndef __interface__Agent__
|
||||
#define __interface__Agent__
|
||||
|
||||
#include <glm/glm.hpp>
|
||||
#include <glm.hpp>
|
||||
#include <sys/socket.h>
|
||||
#include <netinet/in.h>
|
||||
#include <arpa/inet.h>
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
#define __interface__AudioSource__
|
||||
|
||||
#include <iostream>
|
||||
#include <glm/glm.hpp>
|
||||
#include <glm.hpp>
|
||||
|
||||
class AudioSource {
|
||||
public:
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
#ifndef __interface__Cube__
|
||||
#define __interface__Cube__
|
||||
|
||||
#include <glm/glm.hpp>
|
||||
#include <glm.hpp>
|
||||
#include "Util.h"
|
||||
#include "world.h"
|
||||
#include <GLUT/glut.h>
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
//
|
||||
|
||||
#include "Field.h"
|
||||
#include <glm/glm.hpp>
|
||||
#include <glm.hpp>
|
||||
#define FIELD_SCALE 0.00050
|
||||
#define COLOR_DRIFT_RATE 0.001f // per-frame drift of particle color towards field element color
|
||||
#define COLOR_MIN 0.2f // minimum R/G/B value at 0,0,0 - also needs setting in cloud.cpp
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
#include <iostream>
|
||||
#include "world.h"
|
||||
#include "Util.h"
|
||||
#include <glm/glm.hpp>
|
||||
#include <glm.hpp>
|
||||
|
||||
// Field is a lattice of vectors uniformly distributed FIELD_ELEMENTS^(1/3) on side
|
||||
const int FIELD_ELEMENTS = 1000;
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
#ifndef __interface__Finger__
|
||||
#define __interface__Finger__
|
||||
|
||||
#include <glm/glm.hpp>
|
||||
#include <glm.hpp>
|
||||
#include "Util.h"
|
||||
#include "world.h"
|
||||
#include <GLUT/glut.h>
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
#ifndef __interface__Hand__
|
||||
#define __interface__Hand__
|
||||
|
||||
#include <glm/glm.hpp>
|
||||
#include <glm.hpp>
|
||||
#include <iostream>
|
||||
#include "Util.h"
|
||||
#include "Field.h"
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
#include <iostream>
|
||||
#include "Head.h"
|
||||
#include "Util.h"
|
||||
#include "vector_angle.hpp"
|
||||
#include <glm.hpp>
|
||||
#include "SerialInterface.h"
|
||||
|
||||
float skinColor[] = {1.0, 0.84, 0.66};
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
#ifndef __interface__Lattice__
|
||||
#define __interface__Lattice__
|
||||
|
||||
#include <glm/glm.hpp>
|
||||
#include <glm.hpp>
|
||||
#include "Util.h"
|
||||
#include "world.h"
|
||||
#include <GLUT/glut.h>
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
#ifndef __interface__Oscilloscope__
|
||||
#define __interface__Oscilloscope__
|
||||
|
||||
#include <glm/glm.hpp>
|
||||
#include <glm.hpp>
|
||||
#include "Util.h"
|
||||
#include "World.h"
|
||||
#include <GLUT/glut.h>
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
#ifndef __interface__Particle__
|
||||
#define __interface__Particle__
|
||||
|
||||
#include <glm/glm.hpp>
|
||||
#include <glm.hpp>
|
||||
#include "Util.h"
|
||||
#include "world.h"
|
||||
#include <GLUT/glut.h>
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
#ifndef __interface__SerialInterface__
|
||||
#define __interface__SerialInterface__
|
||||
|
||||
#include <glm/glm.hpp>
|
||||
#include <glm.hpp>
|
||||
#include "util.h"
|
||||
#include "world.h"
|
||||
#include <GLUT/glut.h>
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
#endif
|
||||
#include <iostream>
|
||||
#include "world.h"
|
||||
#include <glm/glm.hpp>
|
||||
#include <glm.hpp>
|
||||
#include "util.h"
|
||||
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
#ifndef __interface__Util__
|
||||
#define __interface__Util__
|
||||
|
||||
#include <glm/glm.hpp>
|
||||
#include <glm.hpp>
|
||||
|
||||
float azimuth_to(glm::vec3 head_pos, glm::vec3 source_pos);
|
||||
float angle_to(glm::vec3 head_pos, glm::vec3 source_pos, float render_yaw, float head_yaw);
|
||||
|
|
|
@ -36,7 +36,7 @@
|
|||
#include <unistd.h>
|
||||
#include <fcntl.h>
|
||||
#include <termios.h>
|
||||
#include <glm/glm.hpp>
|
||||
#include <glm.hpp>
|
||||
#include "portaudio.h"
|
||||
|
||||
// Bring in OpenCV
|
||||
|
|
Loading…
Reference in a new issue