Skip to content

Commit

Permalink
update Linux build for latest CMake changes from Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
johnkslang committed Mar 11, 2014
1 parent d18e2d8 commit 3ce1058
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 13 deletions.
10 changes: 6 additions & 4 deletions BuildLinuxCMake.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
#!/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
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
cmake_minimum_required(VERSION 2.8)

set(CMAKE_INSTALL_PREFIX install)

project(glslang)

add_subdirectory(glslang/MachineIndependent)
Expand Down
Binary file modified Install/Linux/glslangValidator
Binary file not shown.
Binary file modified Install/Linux/libglslang.so
Binary file not shown.
17 changes: 10 additions & 7 deletions StandAlone/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
2 changes: 0 additions & 2 deletions Test/glslangValidator

This file was deleted.

0 comments on commit 3ce1058

Please sign in to comment.