diff --git a/CMakeLists.txt b/CMakeLists.txt index b0b5c8d17d..a6f73278e5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) \ No newline at end of file diff --git a/cmake/modules/FindGLM.cmake b/cmake/modules/FindGLM.cmake deleted file mode 100755 index 2d9009298f..0000000000 --- a/cmake/modules/FindGLM.cmake +++ /dev/null @@ -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/glm.hpp OR -# /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) diff --git a/interface/CMakeLists.txt b/interface/CMakeLists.txt index 6d6ae074f4..9fc2804422 100644 --- a/interface/CMakeLists.txt +++ b/interface/CMakeLists.txt @@ -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) \ No newline at end of file +include_directories(${GLM_DIR}) +target_link_libraries(interface GLM) + +include_directories(${PORTAUDIO_DIR}) +target_link_libraries(interface ${PORTAUDIO_DIR}/libportaudio.a) \ No newline at end of file diff --git a/interface/src/Agent.h b/interface/src/Agent.h index 27f355c9ec..68d360c2aa 100644 --- a/interface/src/Agent.h +++ b/interface/src/Agent.h @@ -9,7 +9,7 @@ #ifndef __interface__Agent__ #define __interface__Agent__ -#include +#include #include #include #include diff --git a/interface/src/AudioSource.h b/interface/src/AudioSource.h index 1485d90bae..4a857e8d91 100644 --- a/interface/src/AudioSource.h +++ b/interface/src/AudioSource.h @@ -10,7 +10,7 @@ #define __interface__AudioSource__ #include -#include +#include class AudioSource { public: diff --git a/interface/src/Cube.h b/interface/src/Cube.h index 405c7c0f6f..b9e93df292 100644 --- a/interface/src/Cube.h +++ b/interface/src/Cube.h @@ -9,7 +9,7 @@ #ifndef __interface__Cube__ #define __interface__Cube__ -#include +#include #include "Util.h" #include "world.h" #include diff --git a/interface/src/Field.cpp b/interface/src/Field.cpp index 2793d8de5d..762932b619 100644 --- a/interface/src/Field.cpp +++ b/interface/src/Field.cpp @@ -7,7 +7,7 @@ // #include "Field.h" -#include +#include #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 diff --git a/interface/src/Field.h b/interface/src/Field.h index 76aaab5420..af615b9859 100644 --- a/interface/src/Field.h +++ b/interface/src/Field.h @@ -17,7 +17,7 @@ #include #include "world.h" #include "Util.h" -#include +#include // Field is a lattice of vectors uniformly distributed FIELD_ELEMENTS^(1/3) on side const int FIELD_ELEMENTS = 1000; diff --git a/interface/src/Finger.h b/interface/src/Finger.h index 7e1d15742a..c257689bed 100644 --- a/interface/src/Finger.h +++ b/interface/src/Finger.h @@ -9,7 +9,7 @@ #ifndef __interface__Finger__ #define __interface__Finger__ -#include +#include #include "Util.h" #include "world.h" #include diff --git a/interface/src/Hand.h b/interface/src/Hand.h index 448bf7823a..99129001bf 100644 --- a/interface/src/Hand.h +++ b/interface/src/Hand.h @@ -9,7 +9,7 @@ #ifndef __interface__Hand__ #define __interface__Hand__ -#include +#include #include #include "Util.h" #include "Field.h" diff --git a/interface/src/Head.cpp b/interface/src/Head.cpp index 208dec75d3..9b8795dc14 100644 --- a/interface/src/Head.cpp +++ b/interface/src/Head.cpp @@ -9,7 +9,7 @@ #include #include "Head.h" #include "Util.h" -#include "vector_angle.hpp" +#include #include "SerialInterface.h" float skinColor[] = {1.0, 0.84, 0.66}; diff --git a/interface/src/Lattice.h b/interface/src/Lattice.h index 4099f1488c..9ac37d42a1 100644 --- a/interface/src/Lattice.h +++ b/interface/src/Lattice.h @@ -9,7 +9,7 @@ #ifndef __interface__Lattice__ #define __interface__Lattice__ -#include +#include #include "Util.h" #include "world.h" #include diff --git a/interface/src/Oscilloscope.h b/interface/src/Oscilloscope.h index d4ce9f04c5..21add31e4d 100644 --- a/interface/src/Oscilloscope.h +++ b/interface/src/Oscilloscope.h @@ -9,7 +9,7 @@ #ifndef __interface__Oscilloscope__ #define __interface__Oscilloscope__ -#include +#include #include "Util.h" #include "World.h" #include diff --git a/interface/src/Particle.h b/interface/src/Particle.h index b3b1895013..171296af7e 100644 --- a/interface/src/Particle.h +++ b/interface/src/Particle.h @@ -9,7 +9,7 @@ #ifndef __interface__Particle__ #define __interface__Particle__ -#include +#include #include "Util.h" #include "world.h" #include diff --git a/interface/src/SerialInterface.h b/interface/src/SerialInterface.h index e8d3ec9412..dc80c20650 100644 --- a/interface/src/SerialInterface.h +++ b/interface/src/SerialInterface.h @@ -6,7 +6,7 @@ #ifndef __interface__SerialInterface__ #define __interface__SerialInterface__ -#include +#include #include "util.h" #include "world.h" #include diff --git a/interface/src/Util.cpp b/interface/src/Util.cpp index 80d299b577..f8d69dacfa 100644 --- a/interface/src/Util.cpp +++ b/interface/src/Util.cpp @@ -13,7 +13,7 @@ #endif #include #include "world.h" -#include +#include #include "util.h" diff --git a/interface/src/Util.h b/interface/src/Util.h index de5fe6c8dd..17b11c02e2 100644 --- a/interface/src/Util.h +++ b/interface/src/Util.h @@ -9,7 +9,7 @@ #ifndef __interface__Util__ #define __interface__Util__ -#include +#include 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); diff --git a/interface/src/main.cpp b/interface/src/main.cpp index 838a394b1b..e799872b8b 100644 --- a/interface/src/main.cpp +++ b/interface/src/main.cpp @@ -36,7 +36,7 @@ #include #include #include -#include +#include #include "portaudio.h" // Bring in OpenCV