fix stars file discovery without full binary dir include

This commit is contained in:
Stephen Birarda 2016-01-04 15:52:06 -08:00
parent 508a5c74a2
commit 8dc074c0a3
3 changed files with 9 additions and 15 deletions

View file

@ -1,17 +1,8 @@
set(TARGET_NAME package-console)
# add a target that when built will produce an executable of console for this platform
if (APPLE)
set(PACKAGE_COMMAND package-darwin)
elseif (WIN32)
set(PACKAGE_COMMAND package-win)
elseif (UNIX)
set(PACKAGE_COMMAND package-linux)
endif ()
# add a target that will package the console
add_custom_target(${TARGET_NAME}
COMMAND npm run-script ${PACKAGE_COMMAND} -- --out ${CMAKE_CURRENT_BINARY_DIR}
COMMAND npm run packager -- --out ${CMAKE_CURRENT_BINARY_DIR}
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
)

View file

@ -125,7 +125,10 @@ link_hifi_libraries(shared octree environment gpu gl procedural model render
recording fbx networking model-networking entities avatars
audio audio-client animation script-engine physics
render-utils entities-renderer ui auto-updater
controllers plugins display-plugins input-plugins )
controllers plugins display-plugins input-plugins)
# include the binary directory of render-utils for shader includes
target_include_directories(${TARGET_NAME} PRIVATE "${CMAKE_BINARY_DIR}/libraries/render-utils")
#fixme find a way to express faceshift as a plugin
target_bullet()

View file

@ -22,11 +22,11 @@
#include <RenderArgs.h>
#include <ViewFrustum.h>
#include "../../libraries/render-utils/stars_vert.h"
#include "../../libraries/render-utils/stars_frag.h"
#include <stars_vert.h>
#include <stars_frag.h>
#include "../../libraries/render-utils/standardTransformPNTC_vert.h"
#include "../../libraries/render-utils/starsGrid_frag.h"
#include <standardTransformPNTC_vert.h>
#include <starsGrid_frag.h>
//static const float TILT = 0.23f;
static const float TILT = 0.0f;