Commit 3ce1058d by John Kessenich

update Linux build for latest CMake changes from Windows

parent d18e2d8a
#!/bin/bash
rm -rf linux_build
mkdir linux_build
pushd linux_build
rm -rf build
mkdir build
pushd build
cmake ..
cmake ..
make
./StandAlone/glslangValidator -i ../Test/sample.vert ../Test/sample.frag
make install
install/bin/glslangValidator -i ../Test/sample.vert ../Test/sample.frag
popd
cmake_minimum_required(VERSION 2.8)
set(CMAKE_INSTALL_PREFIX install)
project(glslang)
add_subdirectory(glslang/MachineIndependent)
......
......@@ -11,15 +11,18 @@ endif(WIN32)
add_executable(glslangValidator StandAlone.cpp)
target_link_libraries(glslangValidator
glslang
GenericCodeGen
OSDependent
Preprocessor
OGLCompiler)
set(LIBRARIES
glslang
GenericCodeGen
OSDependent
Preprocessor
OGLCompiler)
if(UNIX)
target_link_libraries(${target_link_libraries} pthread)
set(LIBRARIES ${LIBRARIES} pthread)
endif(UNIX)
target_link_libraries(glslangValidator ${LIBRARIES})
install(TARGETS glslangValidator
RUNTIME DESTINATION bin)
#!/usr/bin/env bash
../build/install/bin/glslangValidator $*
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment