Skip to content

Commit baad8b3

Browse files
Andres CabreraAndres Cabrera
authored andcommitted
Reorganized headers for al_App.hpp. Don't build alloGLV if APR is not available
1 parent da2d8b9 commit baad8b3

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

alloGLV/CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,13 @@ set(EXECUTABLE_OUTPUT_PATH ${CMAKE_SOURCE_DIR}/build/bin)
1313
get_target_property(ALLOCORE_LIBRARY allocore${DEBUG_SUFFIX} LOCATION)
1414
get_target_property(ALLOCORE_DEP_INCLUDE_DIRS allocore${DEBUG_SUFFIX} ALLOCORE_DEP_INCLUDE_DIRS)
1515

16+
find_package(APR QUIET)
17+
18+
if(NOT (APR_LIBRARY AND APR_INCLUDE_DIR))
19+
message(WARNING "APR not available, not building alloGLV")
20+
return()
21+
endif()
22+
1623
if(BUILDING_GLV)
1724
set(GLV_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../../GLV)
1825
get_target_property(glv_location GLV LOCATION)

alloGLV/alloGLV/al_ProtoApp.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
#include <math.h>
4545
#include <string>
4646
#include "allocore/io/al_App.hpp"
47+
#include "allocore/io/al_File.hpp"
4748
#include "alloGLV/al_ControlGLV.hpp"
4849

4950
#include "GLV/glv.h"

allocore/allocore/io/al_App.hpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,16 +44,17 @@
4444
#include <math.h>
4545
#include <string>
4646
#include <vector>
47-
#include "allocore/al_Allocore.hpp"
47+
//#include "allocore/al_Allocore.hpp"
4848

49-
/*#include "allocore/io/al_AudioIO.hpp"
49+
#include "allocore/io/al_AudioIO.hpp"
5050
#include "allocore/sound/al_AudioScene.hpp"
5151
#include "allocore/types/al_Color.hpp"
5252
#include "allocore/graphics/al_Lens.hpp"
5353
#include "allocore/graphics/al_Stereographic.hpp"
5454
#include "allocore/io/al_Window.hpp"
55+
#include "allocore/io/al_ControlNav.hpp"
5556
#include "allocore/protocol/al_OSC.hpp"
56-
#include "allocore/io/al_ControlNav.hpp"*/
57+
#include "allocore/system/al_MainLoop.hpp"
5758

5859
namespace al{
5960

0 commit comments

Comments
 (0)